pub struct SanitizerConfig {
pub sanitize_special_tokens: bool,
pub isolate_delimiters: bool,
pub sanitize_score_prefixes: bool,
pub normalize_noul_instructions: bool,
}Expand description
サニタイズ設定構造体。
Fields§
§sanitize_special_tokens: bool特殊マーカー文字列 ([OP] 等) の無害化を有効にするか。
isolate_delimiters: boolプロンプトデリミタ (State:, Instructions: 等) の偽装隔離を有効にするか。
sanitize_score_prefixes: boolScore 型 Criteria の数字・記号プレフィックス自動サニタイズを有効にするか。
normalize_noul_instructions: boolNoul 型 Instructions の正準テンプレート正規化ラッピングを有効にするか。
Trait Implementations§
Source§impl Clone for SanitizerConfig
impl Clone for SanitizerConfig
Source§fn clone(&self) -> SanitizerConfig
fn clone(&self) -> SanitizerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SanitizerConfig
impl Debug for SanitizerConfig
Source§impl Default for SanitizerConfig
impl Default for SanitizerConfig
impl Eq for SanitizerConfig
Source§impl PartialEq for SanitizerConfig
impl PartialEq for SanitizerConfig
impl StructuralPartialEq for SanitizerConfig
Auto Trait Implementations§
impl Freeze for SanitizerConfig
impl RefUnwindSafe for SanitizerConfig
impl Send for SanitizerConfig
impl Sync for SanitizerConfig
impl Unpin for SanitizerConfig
impl UnsafeUnpin for SanitizerConfig
impl UnwindSafe for SanitizerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more