pub struct RedactionRules {
pub secret: bool,
pub domain: bool,
pub url: bool,
pub email: bool,
pub ip: bool,
pub cidr: bool,
pub phone: bool,
pub person: bool,
pub organization: bool,
}Fields§
§secret: bool§domain: bool§url: bool§email: bool§ip: bool§cidr: bool§phone: bool§person: bool§organization: boolImplementations§
Source§impl RedactionRules
impl RedactionRules
pub fn with_kind(self, kind: FindingKind, enabled: bool) -> Self
pub fn set_kind(&mut self, kind: FindingKind, enabled: bool)
pub fn is_enabled(self, kind: FindingKind) -> bool
Trait Implementations§
Source§impl Clone for RedactionRules
impl Clone for RedactionRules
Source§fn clone(&self) -> RedactionRules
fn clone(&self) -> RedactionRules
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 RedactionRules
impl Debug for RedactionRules
Source§impl Default for RedactionRules
impl Default for RedactionRules
Source§impl<'de> Deserialize<'de> for RedactionRuleswhere
RedactionRules: Default,
impl<'de> Deserialize<'de> for RedactionRuleswhere
RedactionRules: Default,
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 PartialEq for RedactionRules
impl PartialEq for RedactionRules
Source§impl Serialize for RedactionRules
impl Serialize for RedactionRules
impl Copy for RedactionRules
impl Eq for RedactionRules
impl StructuralPartialEq for RedactionRules
Auto Trait Implementations§
impl Freeze for RedactionRules
impl RefUnwindSafe for RedactionRules
impl Send for RedactionRules
impl Sync for RedactionRules
impl Unpin for RedactionRules
impl UnsafeUnpin for RedactionRules
impl UnwindSafe for RedactionRules
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