pub enum RedactionPattern {
SSN,
CreditCard,
Email,
PhoneNumber,
IpAddress,
BankAccount,
ApiKey,
Password,
Custom(String),
}Expand description
Redaction pattern types
Variants§
SSN
Social Security Number (XXX-XX-XXXX)
CreditCard
Credit Card Number (16 digits)
Email Address
PhoneNumber
Phone Number
IpAddress
IP Address
BankAccount
Bank Account Number
ApiKey
API Key / Token
Password
Password field
Custom(String)
Custom pattern
Trait Implementations§
Source§impl Clone for RedactionPattern
impl Clone for RedactionPattern
Source§fn clone(&self) -> RedactionPattern
fn clone(&self) -> RedactionPattern
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 RedactionPattern
impl Debug for RedactionPattern
Source§impl<'de> Deserialize<'de> for RedactionPattern
impl<'de> Deserialize<'de> for RedactionPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for RedactionPattern
impl Hash for RedactionPattern
Source§impl PartialEq for RedactionPattern
impl PartialEq for RedactionPattern
Source§impl Serialize for RedactionPattern
impl Serialize for RedactionPattern
impl Eq for RedactionPattern
impl StructuralPartialEq for RedactionPattern
Auto Trait Implementations§
impl Freeze for RedactionPattern
impl RefUnwindSafe for RedactionPattern
impl Send for RedactionPattern
impl Sync for RedactionPattern
impl Unpin for RedactionPattern
impl UnwindSafe for RedactionPattern
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