#[non_exhaustive]pub enum SafetyNetPiiClass {
Email,
Name,
Location,
Phone,
Url,
Date,
AccountNumber,
Secret,
}Expand description
Closed safety-net PII vocabulary before mapping into PiiClass.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Email address.
Name
Person name.
Location
Location or address.
Phone
Phone number.
Url
URL.
Date
Date.
AccountNumber
Account number.
Secret
Secret.
Implementations§
Source§impl SafetyNetPiiClass
impl SafetyNetPiiClass
Sourcepub fn to_pii_class(self) -> PiiClass
pub fn to_pii_class(self) -> PiiClass
Maps the safety-net class into the shared pipeline class vocabulary.
Trait Implementations§
Source§impl Clone for SafetyNetPiiClass
impl Clone for SafetyNetPiiClass
Source§fn clone(&self) -> SafetyNetPiiClass
fn clone(&self) -> SafetyNetPiiClass
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 SafetyNetPiiClass
impl Debug for SafetyNetPiiClass
Source§impl Hash for SafetyNetPiiClass
impl Hash for SafetyNetPiiClass
Source§impl Ord for SafetyNetPiiClass
impl Ord for SafetyNetPiiClass
Source§fn cmp(&self, other: &SafetyNetPiiClass) -> Ordering
fn cmp(&self, other: &SafetyNetPiiClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SafetyNetPiiClass
impl PartialEq for SafetyNetPiiClass
Source§fn eq(&self, other: &SafetyNetPiiClass) -> bool
fn eq(&self, other: &SafetyNetPiiClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SafetyNetPiiClass
impl PartialOrd for SafetyNetPiiClass
impl Copy for SafetyNetPiiClass
impl Eq for SafetyNetPiiClass
impl StructuralPartialEq for SafetyNetPiiClass
Auto Trait Implementations§
impl Freeze for SafetyNetPiiClass
impl RefUnwindSafe for SafetyNetPiiClass
impl Send for SafetyNetPiiClass
impl Sync for SafetyNetPiiClass
impl Unpin for SafetyNetPiiClass
impl UnsafeUnpin for SafetyNetPiiClass
impl UnwindSafe for SafetyNetPiiClass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.