#[non_exhaustive]#[repr(u8)]pub enum Sensitivity {
Low = 0,
Medium = 1,
High = 2,
}Expand description
Audit / observer sensitivity level for a shell-registered PII type — Higher levels trigger stricter logging policies and can bind the type to specific AEAD / Tier requirements.
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 = 0
Analytics-friendly identifier — still encrypted at rest but appears in operator dashboards under coarse pseudonymisation.
Medium = 1
Standard PII (e.g., free-form handles, message bodies).
High = 2
Credential-adjacent or regulator-scrutinised material — Tier-2 compliance is expected; audit trail keeps HSM attestations.
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 moreSource§impl Debug for Sensitivity
impl Debug for Sensitivity
Source§impl<'de> Deserialize<'de> for Sensitivity
impl<'de> Deserialize<'de> for Sensitivity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Sensitivity
impl PartialEq for Sensitivity
Source§fn eq(&self, other: &Sensitivity) -> bool
fn eq(&self, other: &Sensitivity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Sensitivity
impl Serialize for Sensitivity
impl Copy for Sensitivity
impl Eq 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