pub struct SensitiveFields { /* private fields */ }Expand description
Set of sensitive field names and their sensitivity levels.
Implementations§
Source§impl SensitiveFields
impl SensitiveFields
Sourcepub fn insert(&mut self, field: &str, level: SensitivityLevel)
pub fn insert(&mut self, field: &str, level: SensitivityLevel)
Inserts one sensitive field name.
§Parameters
field- Field name to mark sensitive.level- Sensitivity level assigned to the field.
Sourcepub fn extend<I, S>(&mut self, fields: I, level: SensitivityLevel)
pub fn extend<I, S>(&mut self, fields: I, level: SensitivityLevel)
Inserts each field with the same sensitivity level.
§Parameters
fields- Field names to add.level- Sensitivity level assigned to every field.
Sourcepub fn extend_preset(&mut self, preset: SensitiveFieldPreset)
pub fn extend_preset(&mut self, preset: SensitiveFieldPreset)
Sourcepub fn level_for(&self, field: &str) -> Option<SensitivityLevel>
pub fn level_for(&self, field: &str) -> Option<SensitivityLevel>
Trait Implementations§
Source§impl Clone for SensitiveFields
impl Clone for SensitiveFields
Source§fn clone(&self) -> SensitiveFields
fn clone(&self) -> SensitiveFields
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 SensitiveFields
impl Debug for SensitiveFields
Source§impl Default for SensitiveFields
impl Default for SensitiveFields
Source§impl PartialEq for SensitiveFields
impl PartialEq for SensitiveFields
Source§fn eq(&self, other: &SensitiveFields) -> bool
fn eq(&self, other: &SensitiveFields) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SensitiveFields
impl StructuralPartialEq for SensitiveFields
Auto Trait Implementations§
impl Freeze for SensitiveFields
impl RefUnwindSafe for SensitiveFields
impl Send for SensitiveFields
impl Sync for SensitiveFields
impl Unpin for SensitiveFields
impl UnsafeUnpin for SensitiveFields
impl UnwindSafe for SensitiveFields
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