pub enum RedactionLevel {
None,
Baseline,
Full,
}Expand description
How aggressively to redact a given field category.
Variants§
None
No redaction — store full values as-is.
Baseline
Redact values whose keys match sensitive patterns.
Full
Full redaction — all values replaced with REDACTED_MARKER.
Trait Implementations§
Source§impl Clone for RedactionLevel
impl Clone for RedactionLevel
Source§fn clone(&self) -> RedactionLevel
fn clone(&self) -> RedactionLevel
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 moreimpl Copy for RedactionLevel
Source§impl Debug for RedactionLevel
impl Debug for RedactionLevel
Source§impl<'de> Deserialize<'de> for RedactionLevel
impl<'de> Deserialize<'de> for RedactionLevel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedactionLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedactionLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RedactionLevel
Source§impl PartialEq for RedactionLevel
impl PartialEq for RedactionLevel
Source§fn eq(&self, other: &RedactionLevel) -> bool
fn eq(&self, other: &RedactionLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RedactionLevel
impl Serialize for RedactionLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RedactionLevel
Auto Trait Implementations§
impl Freeze for RedactionLevel
impl RefUnwindSafe for RedactionLevel
impl Send for RedactionLevel
impl Sync for RedactionLevel
impl Unpin for RedactionLevel
impl UnsafeUnpin for RedactionLevel
impl UnwindSafe for RedactionLevel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.