Struct rustrict::ContextRepetitionLimitOptions [−][src]
pub struct ContextRepetitionLimitOptions {
pub limit: u8,
pub memory: Duration,
pub similarity_threshold: f32,
}Expand description
Options that control repetition-limiting.
Fields
limit: u8How many recent strings can be similar before blocking ensues.
memory: DurationHow long recent input is remembered for.
similarity_threshold: f32Normalized levenshtein threshold to consider “too similar.”
Trait Implementations
Auto Trait Implementations
impl Send for ContextRepetitionLimitOptions
impl Sync for ContextRepetitionLimitOptions
impl Unpin for ContextRepetitionLimitOptions
impl UnwindSafe for ContextRepetitionLimitOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
