pub struct EntropyConfig {
pub threshold: Option<f64>,
pub window_size: Option<usize>,
}Expand description
Configuration settings specific to the Entropy Engine.
Fields§
§threshold: Option<f64>The confidence threshold for flagging a token as a secret (default: 0.5).
window_size: Option<usize>The size of the scanning window in bytes (default: 24). Smaller windows are more aggressive; larger windows reduce noise.
Trait 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 (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 EntropyConfig
impl Debug for EntropyConfig
Source§impl Default for EntropyConfig
impl Default for EntropyConfig
Source§fn default() -> EntropyConfig
fn default() -> EntropyConfig
Returns the “default value” for a type. Read more
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
Source§impl Hash for EntropyConfig
impl Hash for EntropyConfig
Source§impl PartialEq for EntropyConfig
impl PartialEq for EntropyConfig
Source§fn eq(&self, other: &EntropyConfig) -> bool
fn eq(&self, other: &EntropyConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntropyConfig
impl Serialize for EntropyConfig
impl StructuralPartialEq for EntropyConfig
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