pub struct AnchoredMatchRecognizer { /* private fields */ }Expand description
Recognizes person names near literal locale cues.
The person_name grammar accepts Unicode letter components with internal
apostrophe or hyphen joins, initials written as a single uppercase letter
followed by ., and non-leading particles (de, la, van, der) only
when sandwiched between uppercase components. Matching is max-greedy,
capped at four components and 64 bytes.
Implementations§
Trait Implementations§
Source§impl Recognizer for AnchoredMatchRecognizer
impl Recognizer for AnchoredMatchRecognizer
Source§fn supported_class(&self) -> &PiiClass
fn supported_class(&self) -> &PiiClass
PII class supported by this recognizer.
Source§fn detect(&self, input: &str, _ctx: &DetectContext<'_>) -> Vec<Candidate>
fn detect(&self, input: &str, _ctx: &DetectContext<'_>) -> Vec<Candidate>
Detects PII candidates in the supplied input and context.
Source§fn token_family(&self) -> &str
fn token_family(&self) -> &str
Token family used for candidate token emission.
Source§fn validator_kind(&self) -> Option<ValidatorKind>
fn validator_kind(&self) -> Option<ValidatorKind>
Optional validator kind used by pre-resolver validator-veto.
Auto Trait Implementations§
impl Freeze for AnchoredMatchRecognizer
impl RefUnwindSafe for AnchoredMatchRecognizer
impl Send for AnchoredMatchRecognizer
impl Sync for AnchoredMatchRecognizer
impl Unpin for AnchoredMatchRecognizer
impl UnsafeUnpin for AnchoredMatchRecognizer
impl UnwindSafe for AnchoredMatchRecognizer
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more