#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Sensitivity {
Unspecified = 0,
Pii = 1,
Secret = 2,
}
impl Sensitivity {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SENSITIVITY_UNSPECIFIED",
Self::Pii => "SENSITIVITY_PII",
Self::Secret => "SENSITIVITY_SECRET",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SENSITIVITY_UNSPECIFIED" => Some(Self::Unspecified),
"SENSITIVITY_PII" => Some(Self::Pii),
"SENSITIVITY_SECRET" => Some(Self::Secret),
_ => None,
}
}
}
include!("logger.serde.rs");