pub struct PerplexityFilterSettings {
pub enabled: bool,
pub perplexity_threshold: f64,
pub suffix_window_chars: usize,
pub symbol_ratio_threshold: f64,
pub min_prompt_chars: usize,
}Expand description
Configuration for the perplexity filter applied to inbound messages.
Fields§
§enabled: bool§perplexity_threshold: f64§suffix_window_chars: usize§symbol_ratio_threshold: f64§min_prompt_chars: usizeTrait Implementations§
Source§impl Clone for PerplexityFilterSettings
impl Clone for PerplexityFilterSettings
Source§fn clone(&self) -> PerplexityFilterSettings
fn clone(&self) -> PerplexityFilterSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 PerplexityFilterSettings
impl Debug for PerplexityFilterSettings
Auto Trait Implementations§
impl Freeze for PerplexityFilterSettings
impl RefUnwindSafe for PerplexityFilterSettings
impl Send for PerplexityFilterSettings
impl Sync for PerplexityFilterSettings
impl Unpin for PerplexityFilterSettings
impl UnsafeUnpin for PerplexityFilterSettings
impl UnwindSafe for PerplexityFilterSettings
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