pub struct EntropyConfig {
pub enabled: bool,
pub threshold: f64,
pub min_token_len: usize,
}Expand description
High-entropy token detector configuration.
Fields§
§enabled: bool§threshold: f64§min_token_len: usizeTrait Implementations§
Source§impl Clone for EntropyConfig
impl Clone for EntropyConfig
Source§fn clone(&self) -> EntropyConfig
fn clone(&self) -> EntropyConfig
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 EntropyConfig
impl Debug for EntropyConfig
Source§impl Default for EntropyConfig
impl Default for EntropyConfig
Source§impl<'de> Deserialize<'de> for EntropyConfig
impl<'de> Deserialize<'de> for EntropyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EntropyConfig
impl RefUnwindSafe for EntropyConfig
impl Send for EntropyConfig
impl Sync for EntropyConfig
impl Unpin for EntropyConfig
impl UnsafeUnpin for EntropyConfig
impl UnwindSafe for EntropyConfig
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