mattermost_rust_client/models/
channel_moderation_patch.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ChannelModerationPatch {
16 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
17 pub name: Option<String>,
18 #[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
19 pub roles: Option<Box<crate::models::ChannelModeratedRolesPatch>>,
20}
21
22impl ChannelModerationPatch {
23 pub fn new() -> ChannelModerationPatch {
24 ChannelModerationPatch {
25 name: None,
26 roles: None,
27 }
28 }
29}
30
31