cx_api/generated/
com.coralogixapis.apm.common.v2.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// This file is @generated by prost-build.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditLogDescription {
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OrderBy {
    #[prost(message, optional, tag = "1")]
    pub field_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(enumeration = "OrderByDirection", tag = "2")]
    pub direction: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OrderByDirection {
    Unspecified = 0,
    Asc = 1,
    Desc = 2,
}
impl OrderByDirection {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "ORDER_BY_DIRECTION_UNSPECIFIED",
            Self::Asc => "ORDER_BY_DIRECTION_ASC",
            Self::Desc => "ORDER_BY_DIRECTION_DESC",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ORDER_BY_DIRECTION_UNSPECIFIED" => Some(Self::Unspecified),
            "ORDER_BY_DIRECTION_ASC" => Some(Self::Asc),
            "ORDER_BY_DIRECTION_DESC" => Some(Self::Desc),
            _ => None,
        }
    }
}