pub enum Redaction {
Default,
Remove,
Replace(ReplaceRedaction),
Mask,
Hash,
Other,
}
Expand description
Defines how replacements happen.
Variants§
Default
The default redaction for this operation (normally equivalent to Remove
).
The main difference to Remove
is that if the redaction is explicitly
set to Remove
it also applies in situations where a default
redaction is otherwise not passed down (for instance with Multiple
).
Remove
Removes the value and puts nothing in its place.
Replace(ReplaceRedaction)
Replaces the matched group with a new value.
Mask
Overwrites the matched value by masking.
Hash
Replaces the value with a hash
Other
Added for forward compatibility as catch-all variant.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Redaction
impl<'de> Deserialize<'de> for Redaction
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 Eq for Redaction
impl StructuralPartialEq for Redaction
Auto Trait Implementations§
impl Freeze for Redaction
impl RefUnwindSafe for Redaction
impl Send for Redaction
impl Sync for Redaction
impl Unpin for Redaction
impl UnwindSafe for Redaction
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
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.