pub struct PrefixRule {
pub detector: DetectorId,
pub prefix: &'static str,
pub min_tail: usize,
pub charset: Charset,
}Expand description
A credential recognised by the way it starts.
Fields§
§detector: DetectorIdWhat a finding names.
prefix: &'static strThe literal the token begins with (case-sensitive).
min_tail: usizeHow many characters of Self::charset must follow it. A prefix with
no length requirement matches the word “sky” and every sentence that
contains it.
charset: CharsetWhat those characters may be.
Trait Implementations§
Source§impl Clone for PrefixRule
impl Clone for PrefixRule
impl Copy for PrefixRule
Source§impl Debug for PrefixRule
impl Debug for PrefixRule
impl Eq for PrefixRule
Source§impl PartialEq for PrefixRule
impl PartialEq for PrefixRule
impl StructuralPartialEq for PrefixRule
Auto Trait Implementations§
impl Freeze for PrefixRule
impl RefUnwindSafe for PrefixRule
impl Send for PrefixRule
impl Sync for PrefixRule
impl Unpin for PrefixRule
impl UnsafeUnpin for PrefixRule
impl UnwindSafe for PrefixRule
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