cx_api/generated/
com.coralogixapis.notification_center.routing.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct RoutingRule {
6    /// Condition template that is rendered to true or false and used to determine if the rule should be applied
7    #[prost(string, tag = "1")]
8    pub condition: ::prost::alloc::string::String,
9    /// List of targets to send the notification to
10    #[prost(message, repeated, tag = "2")]
11    pub targets: ::prost::alloc::vec::Vec<RoutingTarget>,
12    #[prost(map = "string, string", tag = "3")]
13    pub custom_details: ::std::collections::HashMap<
14        ::prost::alloc::string::String,
15        ::prost::alloc::string::String,
16    >,
17    #[prost(string, optional, tag = "4")]
18    pub name: ::core::option::Option<::prost::alloc::string::String>,
19}
20#[derive(serde::Serialize, serde::Deserialize)]
21#[serde(rename_all = "snake_case")]
22#[derive(Clone, PartialEq, ::prost::Message)]
23pub struct RoutingTarget {
24    /// Connector ID to send the notification to
25    #[deprecated]
26    #[prost(string, tag = "1")]
27    pub deprecated_connector_id: ::prost::alloc::string::String,
28    /// Preset to use for rendering notification content, default preset is used if not provided
29    #[deprecated]
30    #[prost(string, optional, tag = "2")]
31    pub deprecated_preset_id: ::core::option::Option<::prost::alloc::string::String>,
32    #[prost(map = "string, string", tag = "4")]
33    pub custom_details: ::std::collections::HashMap<
34        ::prost::alloc::string::String,
35        ::prost::alloc::string::String,
36    >,
37    #[deprecated]
38    #[prost(message, optional, tag = "5")]
39    pub connector_identifier: ::core::option::Option<super::ConnectorIdentifier>,
40    #[deprecated]
41    #[prost(message, optional, tag = "6")]
42    pub preset_identifier: ::core::option::Option<super::PresetIdentifier>,
43    #[prost(string, tag = "7")]
44    pub connector_id: ::prost::alloc::string::String,
45    #[prost(string, optional, tag = "8")]
46    pub preset_id: ::core::option::Option<::prost::alloc::string::String>,
47}
48#[derive(serde::Serialize, serde::Deserialize)]
49#[serde(rename_all = "snake_case")]
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct SourceOverrides {
52    #[prost(string, tag = "1")]
53    pub payload_type: ::prost::alloc::string::String,
54    #[prost(message, repeated, tag = "3")]
55    pub message_config_fields: ::prost::alloc::vec::Vec<super::MessageConfigField>,
56    #[deprecated]
57    #[prost(message, repeated, tag = "4")]
58    pub deprecated_connector_config_fields: ::prost::alloc::vec::Vec<
59        super::ConnectorConfigField,
60    >,
61    #[prost(message, repeated, tag = "5")]
62    pub connector_config_fields: ::prost::alloc::vec::Vec<
63        super::TemplatedConnectorConfigField,
64    >,
65}
66#[derive(serde::Serialize, serde::Deserialize)]
67#[serde(rename_all = "snake_case")]
68#[derive(Clone, PartialEq, ::prost::Message)]
69pub struct GlobalRouterIdentifier {
70    #[prost(oneof = "global_router_identifier::Value", tags = "1, 2")]
71    pub value: ::core::option::Option<global_router_identifier::Value>,
72}
73/// Nested message and enum types in `GlobalRouterIdentifier`.
74pub mod global_router_identifier {
75    #[derive(serde::Serialize, serde::Deserialize)]
76    #[serde(rename_all = "snake_case")]
77    #[derive(Clone, PartialEq, ::prost::Oneof)]
78    pub enum Value {
79        #[prost(string, tag = "1")]
80        Id(::prost::alloc::string::String),
81        #[prost(string, tag = "2")]
82        UserFacingId(::prost::alloc::string::String),
83    }
84}