Skip to main content

livekit_protocol/
logger.rs

1// @generated
2// This file is @generated by prost-build.
3#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4#[repr(i32)]
5pub enum Sensitivity {
6    /// Unannotated default — safe to log.
7    /// Identifiers, IDs, timestamps, enums, status fields.
8    Unspecified = 0,
9    /// User-identifying or user-controlled data: display names, phone numbers,
10    /// metadata, attributes, custom headers, auth usernames, semi-public account
11    /// identifiers (AWS role ARNs, Azure account names).
12    /// Recorded under a sensitivity tag by a sink that can tag; redacted by one
13    /// that cannot.
14    Pii = 1,
15    /// Credentials and authentication material: passwords, access keys, session
16    /// tokens, signing keys, API keys, ICE credentials.
17    /// ALWAYS redacted: no sink may record it.
18    Secret = 2,
19}
20impl Sensitivity {
21    /// String value of the enum field names used in the ProtoBuf definition.
22    ///
23    /// The values are not transformed in any way and thus are considered stable
24    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
25    pub fn as_str_name(&self) -> &'static str {
26        match self {
27            Self::Unspecified => "SENSITIVITY_UNSPECIFIED",
28            Self::Pii => "SENSITIVITY_PII",
29            Self::Secret => "SENSITIVITY_SECRET",
30        }
31    }
32    /// Creates an enum from field names used in the ProtoBuf definition.
33    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
34        match value {
35            "SENSITIVITY_UNSPECIFIED" => Some(Self::Unspecified),
36            "SENSITIVITY_PII" => Some(Self::Pii),
37            "SENSITIVITY_SECRET" => Some(Self::Secret),
38            _ => None,
39        }
40    }
41}
42include!("logger.serde.rs");
43// @@protoc_insertion_point(module)