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    #[prost(map = "string, string", tag = "4")]
25    pub custom_details: ::std::collections::HashMap<
26        ::prost::alloc::string::String,
27        ::prost::alloc::string::String,
28    >,
29    #[prost(string, tag = "7")]
30    pub connector_id: ::prost::alloc::string::String,
31    #[prost(string, optional, tag = "8")]
32    pub preset_id: ::core::option::Option<::prost::alloc::string::String>,
33}
34#[derive(serde::Serialize, serde::Deserialize)]
35#[serde(rename_all = "snake_case")]
36#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct SourceOverrides {
38    #[prost(string, tag = "1")]
39    pub payload_type: ::prost::alloc::string::String,
40    #[prost(message, repeated, tag = "3")]
41    pub message_config_fields: ::prost::alloc::vec::Vec<super::MessageConfigField>,
42    #[prost(message, repeated, tag = "5")]
43    pub connector_config_fields: ::prost::alloc::vec::Vec<
44        super::TemplatedConnectorConfigField,
45    >,
46}
47#[derive(serde::Serialize, serde::Deserialize)]
48#[serde(rename_all = "snake_case")]
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct GlobalRouterIdentifier {
51    #[prost(oneof = "global_router_identifier::Value", tags = "1, 2")]
52    pub value: ::core::option::Option<global_router_identifier::Value>,
53}
54/// Nested message and enum types in `GlobalRouterIdentifier`.
55pub mod global_router_identifier {
56    #[derive(serde::Serialize, serde::Deserialize)]
57    #[serde(rename_all = "snake_case")]
58    #[derive(Clone, PartialEq, ::prost::Oneof)]
59    pub enum Value {
60        #[prost(string, tag = "1")]
61        Id(::prost::alloc::string::String),
62        #[prost(string, tag = "2")]
63        UserFacingId(::prost::alloc::string::String),
64    }
65}