pub enum SensitivityLevel {
Low,
Medium,
High,
Secret,
}Expand description
Sensitivity level associated with a field name.
Levels let callers use different masking policies for low-risk identifiers, operational secrets, and values that should be fully redacted.
Variants§
Low
Low-risk value where keeping a small prefix and suffix is usually safe.
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 SensitivityLevel
impl Clone for SensitivityLevel
Source§fn clone(&self) -> SensitivityLevel
fn clone(&self) -> SensitivityLevel
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 moreSource§impl Debug for SensitivityLevel
impl Debug for SensitivityLevel
Source§impl Hash for SensitivityLevel
impl Hash for SensitivityLevel
Source§impl Ord for SensitivityLevel
impl Ord for SensitivityLevel
Source§fn cmp(&self, other: &SensitivityLevel) -> Ordering
fn cmp(&self, other: &SensitivityLevel) -> 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
Source§impl PartialEq for SensitivityLevel
impl PartialEq for SensitivityLevel
Source§fn eq(&self, other: &SensitivityLevel) -> bool
fn eq(&self, other: &SensitivityLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SensitivityLevel
impl PartialOrd for SensitivityLevel
impl Copy for SensitivityLevel
impl Eq for SensitivityLevel
impl StructuralPartialEq for SensitivityLevel
Auto Trait Implementations§
impl Freeze for SensitivityLevel
impl RefUnwindSafe for SensitivityLevel
impl Send for SensitivityLevel
impl Sync for SensitivityLevel
impl Unpin for SensitivityLevel
impl UnsafeUnpin for SensitivityLevel
impl UnwindSafe for SensitivityLevel
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.