#[non_exhaustive]pub enum Sensitivity {
Low,
Medium,
High,
Secret,
}Expand description
Sensitivity assigned to a field or explicit value.
The strength order is Low < Medium < High < Secret.
§Examples
use qubit_redact::Sensitivity;
assert!(Sensitivity::Secret > Sensitivity::High);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Low
Low-risk value where keeping a small prefix and suffix is acceptable.
Medium
Moderately sensitive value where only a small suffix is retained.
High
Highly sensitive value replaced by a fixed mask.
Secret
Secret value replaced by the strongest configured mask.
Trait Implementations§
Source§impl Clone for Sensitivity
impl Clone for Sensitivity
Source§fn clone(&self) -> Sensitivity
fn clone(&self) -> Sensitivity
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 Sensitivity
Source§impl Debug for Sensitivity
impl Debug for Sensitivity
impl Eq for Sensitivity
Source§impl Hash for Sensitivity
impl Hash for Sensitivity
Source§impl Ord for Sensitivity
impl Ord for Sensitivity
Source§fn cmp(&self, other: &Sensitivity) -> Ordering
fn cmp(&self, other: &Sensitivity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Sensitivity
impl PartialEq for Sensitivity
Source§impl PartialOrd for Sensitivity
impl PartialOrd for Sensitivity
impl StructuralPartialEq for Sensitivity
Auto Trait Implementations§
impl Freeze for Sensitivity
impl RefUnwindSafe for Sensitivity
impl Send for Sensitivity
impl Sync for Sensitivity
impl Unpin for Sensitivity
impl UnsafeUnpin for Sensitivity
impl UnwindSafe for Sensitivity
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