pub enum FieldRedaction {
None,
Redact,
Hash,
Last4,
}Expand description
Redaction policy associated with a metadata Field.
Variants§
None
Preserve the value as-is.
Redact
Remove the value from public payloads.
Hash
Hash the value with a cryptographic digest before exposure.
Last4
Preserve only the last four characters (mask the rest).
Trait Implementations§
Source§impl Clone for FieldRedaction
impl Clone for FieldRedaction
Source§fn clone(&self) -> FieldRedaction
fn clone(&self) -> FieldRedaction
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 FieldRedaction
impl Debug for FieldRedaction
Source§impl Default for FieldRedaction
impl Default for FieldRedaction
Source§fn default() -> FieldRedaction
fn default() -> FieldRedaction
Returns the “default value” for a type. Read more
Source§impl PartialEq for FieldRedaction
impl PartialEq for FieldRedaction
impl Copy for FieldRedaction
impl Eq for FieldRedaction
impl StructuralPartialEq for FieldRedaction
Auto Trait Implementations§
impl Freeze for FieldRedaction
impl RefUnwindSafe for FieldRedaction
impl Send for FieldRedaction
impl Sync for FieldRedaction
impl Unpin for FieldRedaction
impl UnwindSafe for FieldRedaction
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