pub enum Action {
Drop,
ReplaceWith(Value),
Hash(HashAlgo),
Mask {
visible_prefix: usize,
visible_suffix: usize,
mask_char: char,
},
Truncate {
max_bytes: usize,
},
}Expand description
A redaction action for a matching field.
Variants§
Drop
Drop the field from the record.
ReplaceWith(Value)
Replace the field value with a fixed value.
Hash(HashAlgo)
Replace the field value with a deterministic hash.
Mask
Partially mask the field value.
Fields
Truncate
Limit the field value to at most max_bytes bytes.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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