#[non_exhaustive]#[repr(i32)]pub enum Classification {
Unspecified = 0,
Internal = 1,
Pii = 2,
Secret = 3,
}Expand description
Security/PII classification of a field.
Drives lint L002 (PII never on LABEL) and L003 (SECRET never on LOG/AUDIT tier). See 70-security-and-classification.md.
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.
Unspecified = 0
Never appears in a well-formed schema.
Internal = 1
Plain internal field; no special handling.
Pii = 2
Personally identifiable information; redactable; never on LABEL.
Secret = 3
Stripped before durable write; never on LOG/AUDIT tier.
Implementations§
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§fn clone(&self) -> Classification
fn clone(&self) -> Classification
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 Classification
impl Debug for Classification
Source§impl Default for Classification
impl Default for Classification
Source§fn default() -> Classification
fn default() -> Classification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Classification
impl<'de> Deserialize<'de> for Classification
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 Enumeration for Classification
impl Enumeration for Classification
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§impl FromStr for Classification
impl FromStr for Classification
Source§impl Hash for Classification
impl Hash for Classification
Source§impl PartialEq for Classification
impl PartialEq for Classification
Source§fn eq(&self, other: &Classification) -> bool
fn eq(&self, other: &Classification) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Classification
impl Serialize for Classification
impl Copy for Classification
impl Eq for Classification
impl StructuralPartialEq for Classification
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
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