#[non_exhaustive]pub struct RecognizerSpec {
pub id: String,
pub class: PiiClass,
pub cooperates_with: Vec<String>,
pub enabled: bool,
pub locales: Vec<LocaleTag>,
pub matcher: RawMatch,
pub context: Option<ContextSpec>,
pub validator: Option<ValidatorSpec>,
pub normalizer: Option<NormalizerSpec>,
pub scoring: ScoringSpec,
pub token: TokenSpec,
pub source: Option<SourceSpec>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§class: PiiClass§cooperates_with: Vec<String>§enabled: bool§locales: Vec<LocaleTag>§matcher: RawMatch§context: Option<ContextSpec>§validator: Option<ValidatorSpec>§normalizer: Option<NormalizerSpec>§scoring: ScoringSpec§token: TokenSpec§source: Option<SourceSpec>Trait Implementations§
Source§impl Clone for RecognizerSpec
impl Clone for RecognizerSpec
Source§fn clone(&self) -> RecognizerSpec
fn clone(&self) -> RecognizerSpec
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 RecognizerSpec
impl Debug for RecognizerSpec
Source§impl PartialEq for RecognizerSpec
impl PartialEq for RecognizerSpec
Source§fn eq(&self, other: &RecognizerSpec) -> bool
fn eq(&self, other: &RecognizerSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecognizerSpec
Auto Trait Implementations§
impl Freeze for RecognizerSpec
impl RefUnwindSafe for RecognizerSpec
impl Send for RecognizerSpec
impl Sync for RecognizerSpec
impl Unpin for RecognizerSpec
impl UnsafeUnpin for RecognizerSpec
impl UnwindSafe for RecognizerSpec
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