pub enum RuleType {
Show 18 variants
Anything,
Pattern(PatternRule),
Imei,
Mac,
Uuid,
Email,
Ip,
Creditcard,
Iban,
Userpath,
Pemkey,
UrlAuth,
UsSsn,
Password,
RedactPair(RedactPairRule),
Multiple(MultipleRule),
Alias(AliasRule),
Unknown(String),
}
Expand description
Supported scrubbing rules.
Variants§
Anything
Matches any value.
Pattern(PatternRule)
Applies a regular expression.
Imei
Matchse an IMEI or IMEISV
Mac
Matches a mac address
Uuid
Matches a UUID
Matches an email
Ip
Matches any IP address
Creditcard
Matches a creditcard number
Iban
Matches an IBAN
Userpath
Sanitizes a path from user data
Pemkey
A PEM encoded key
UrlAuth
Auth info from URLs
UsSsn
US SSN.
Password
Keys that look like passwords
RedactPair(RedactPairRule)
When a regex matches a key, a value is removed
Multiple(MultipleRule)
Applies multiple rules.
Alias(AliasRule)
Applies another rule. Works like a single multiple.
Unknown(String)
Unknown ruletype for forward compatibility
Trait Implementations§
source§impl<'de> Deserialize<'de> for RuleType
impl<'de> Deserialize<'de> for RuleType
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
impl StructuralPartialEq for RuleType
Auto Trait Implementations§
impl !Freeze for RuleType
impl RefUnwindSafe for RuleType
impl Send for RuleType
impl Sync for RuleType
impl Unpin for RuleType
impl UnwindSafe for RuleType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)