pub struct CanaryConfig {
pub enabled: bool,
pub prefix: String,
pub token_length: usize,
pub detect_partial: bool,
pub partial_min_length: usize,
}Expand description
Configuration for canary token generation and detection.
Fields§
§enabled: boolWhether canary detection is enabled.
prefix: StringToken prefix (default: "CANARY-").
token_length: usizeLength of the random portion of the token in characters (default: 16).
detect_partial: boolWhether to also detect partial token matches (substring).
partial_min_length: usizeMinimum substring length to consider a partial match.
Trait Implementations§
Source§impl Clone for CanaryConfig
impl Clone for CanaryConfig
Source§fn clone(&self) -> CanaryConfig
fn clone(&self) -> CanaryConfig
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 CanaryConfig
impl Debug for CanaryConfig
Auto Trait Implementations§
impl Freeze for CanaryConfig
impl RefUnwindSafe for CanaryConfig
impl Send for CanaryConfig
impl Sync for CanaryConfig
impl Unpin for CanaryConfig
impl UnsafeUnpin for CanaryConfig
impl UnwindSafe for CanaryConfig
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