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
#[allow(unused_imports)]
use serde_json::Value;

#[derive(Debug, Serialize, Deserialize)]
pub struct EventChannelCreateParams {
    /// Nodes (LNNs) that can be masters for this channel
    #[serde(rename = "allowed_nodes")]
    pub allowed_nodes: Option<Vec<i32>>,
    /// Channel is to be used or not
    #[serde(rename = "enabled")]
    pub enabled: Option<bool>,
    /// Nodes (LNNs) that can NOT be the masters for this channel
    #[serde(rename = "excluded_nodes")]
    pub excluded_nodes: Option<Vec<i32>>,
    /// Parameters to be used for an smtp channel
    #[serde(rename = "parameters")]
    pub parameters: Option <crate::models::EventChannelParameters>,
    /// Channel is a pre-defined system channel
    #[serde(rename = "system")]
    pub system: Option<bool>,
    /// The mechanism used by the channel
    #[serde(rename = "type")]
    pub _type: String,
    /// Unique identifier.
    #[serde(rename = "id")]
    pub id: Option<i32>,
    /// Channel name,  may not contain /, max length 254.
    #[serde(rename = "name")]
    pub name: String,
}