pub struct SlackChannelFlags {
pub is_channel: Option<bool>,
pub is_group: Option<bool>,
pub is_im: Option<bool>,
pub is_archived: Option<bool>,
pub is_general: Option<bool>,
pub is_shared: Option<bool>,
pub is_org_shared: Option<bool>,
pub is_member: Option<bool>,
pub is_private: Option<bool>,
pub is_mpim: Option<bool>,
pub is_user_deleted: Option<bool>,
}Fields§
§is_channel: Option<bool>§is_group: Option<bool>§is_im: Option<bool>§is_archived: Option<bool>§is_general: Option<bool>§is_member: Option<bool>§is_private: Option<bool>§is_mpim: Option<bool>§is_user_deleted: Option<bool>Implementations§
Source§impl SlackChannelFlags
impl SlackChannelFlags
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackChannelFlags from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn is_channel(&mut self, value: bool) -> &mut Self
pub fn is_channel(&mut self, value: bool) -> &mut Self
Sets is_channel to Some(value).
Sourcepub fn reset_is_channel(&mut self) -> &mut Self
pub fn reset_is_channel(&mut self) -> &mut Self
Sets is_channel to None.
Sourcepub fn mopt_is_channel(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_channel(&mut self, value: Option<bool>) -> &mut Self
Sets is_channel to the given Option.
Sourcepub fn with_is_channel(self, value: bool) -> Self
pub fn with_is_channel(self, value: bool) -> Self
Returns self with is_channel set to Some(value).
Sourcepub fn without_is_channel(self) -> Self
pub fn without_is_channel(self) -> Self
Returns self with is_channel set to None.
Sourcepub fn opt_is_channel(self, value: Option<bool>) -> Self
pub fn opt_is_channel(self, value: Option<bool>) -> Self
Returns self with is_channel set to the given Option.
Sourcepub fn reset_is_group(&mut self) -> &mut Self
pub fn reset_is_group(&mut self) -> &mut Self
Sets is_group to None.
Sourcepub fn mopt_is_group(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_group(&mut self, value: Option<bool>) -> &mut Self
Sets is_group to the given Option.
Sourcepub fn with_is_group(self, value: bool) -> Self
pub fn with_is_group(self, value: bool) -> Self
Returns self with is_group set to Some(value).
Sourcepub fn without_is_group(self) -> Self
pub fn without_is_group(self) -> Self
Returns self with is_group set to None.
Sourcepub fn opt_is_group(self, value: Option<bool>) -> Self
pub fn opt_is_group(self, value: Option<bool>) -> Self
Returns self with is_group set to the given Option.
Sourcepub fn reset_is_im(&mut self) -> &mut Self
pub fn reset_is_im(&mut self) -> &mut Self
Sets is_im to None.
Sourcepub fn mopt_is_im(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_im(&mut self, value: Option<bool>) -> &mut Self
Sets is_im to the given Option.
Sourcepub fn with_is_im(self, value: bool) -> Self
pub fn with_is_im(self, value: bool) -> Self
Returns self with is_im set to Some(value).
Sourcepub fn without_is_im(self) -> Self
pub fn without_is_im(self) -> Self
Returns self with is_im set to None.
Sourcepub fn opt_is_im(self, value: Option<bool>) -> Self
pub fn opt_is_im(self, value: Option<bool>) -> Self
Returns self with is_im set to the given Option.
Sourcepub fn is_archived(&mut self, value: bool) -> &mut Self
pub fn is_archived(&mut self, value: bool) -> &mut Self
Sets is_archived to Some(value).
Sourcepub fn reset_is_archived(&mut self) -> &mut Self
pub fn reset_is_archived(&mut self) -> &mut Self
Sets is_archived to None.
Sourcepub fn mopt_is_archived(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_archived(&mut self, value: Option<bool>) -> &mut Self
Sets is_archived to the given Option.
Sourcepub fn with_is_archived(self, value: bool) -> Self
pub fn with_is_archived(self, value: bool) -> Self
Returns self with is_archived set to Some(value).
Sourcepub fn without_is_archived(self) -> Self
pub fn without_is_archived(self) -> Self
Returns self with is_archived set to None.
Sourcepub fn opt_is_archived(self, value: Option<bool>) -> Self
pub fn opt_is_archived(self, value: Option<bool>) -> Self
Returns self with is_archived set to the given Option.
Sourcepub fn is_general(&mut self, value: bool) -> &mut Self
pub fn is_general(&mut self, value: bool) -> &mut Self
Sets is_general to Some(value).
Sourcepub fn reset_is_general(&mut self) -> &mut Self
pub fn reset_is_general(&mut self) -> &mut Self
Sets is_general to None.
Sourcepub fn mopt_is_general(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_general(&mut self, value: Option<bool>) -> &mut Self
Sets is_general to the given Option.
Sourcepub fn with_is_general(self, value: bool) -> Self
pub fn with_is_general(self, value: bool) -> Self
Returns self with is_general set to Some(value).
Sourcepub fn without_is_general(self) -> Self
pub fn without_is_general(self) -> Self
Returns self with is_general set to None.
Sourcepub fn opt_is_general(self, value: Option<bool>) -> Self
pub fn opt_is_general(self, value: Option<bool>) -> Self
Returns self with is_general set to the given Option.
Sets is_shared to Some(value).
Sets is_shared to None.
Sets is_shared to the given Option.
Returns self with is_shared set to Some(value).
Returns self with is_shared set to None.
Returns self with is_shared set to the given Option.
Sets is_org_shared to Some(value).
Sets is_org_shared to None.
Sets is_org_shared to the given Option.
Returns self with is_org_shared set to Some(value).
Returns self with is_org_shared set to None.
Returns self with is_org_shared set to the given Option.
Sourcepub fn reset_is_member(&mut self) -> &mut Self
pub fn reset_is_member(&mut self) -> &mut Self
Sets is_member to None.
Sourcepub fn mopt_is_member(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_member(&mut self, value: Option<bool>) -> &mut Self
Sets is_member to the given Option.
Sourcepub fn with_is_member(self, value: bool) -> Self
pub fn with_is_member(self, value: bool) -> Self
Returns self with is_member set to Some(value).
Sourcepub fn without_is_member(self) -> Self
pub fn without_is_member(self) -> Self
Returns self with is_member set to None.
Sourcepub fn opt_is_member(self, value: Option<bool>) -> Self
pub fn opt_is_member(self, value: Option<bool>) -> Self
Returns self with is_member set to the given Option.
Sourcepub fn is_private(&mut self, value: bool) -> &mut Self
pub fn is_private(&mut self, value: bool) -> &mut Self
Sets is_private to Some(value).
Sourcepub fn reset_is_private(&mut self) -> &mut Self
pub fn reset_is_private(&mut self) -> &mut Self
Sets is_private to None.
Sourcepub fn mopt_is_private(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_private(&mut self, value: Option<bool>) -> &mut Self
Sets is_private to the given Option.
Sourcepub fn with_is_private(self, value: bool) -> Self
pub fn with_is_private(self, value: bool) -> Self
Returns self with is_private set to Some(value).
Sourcepub fn without_is_private(self) -> Self
pub fn without_is_private(self) -> Self
Returns self with is_private set to None.
Sourcepub fn opt_is_private(self, value: Option<bool>) -> Self
pub fn opt_is_private(self, value: Option<bool>) -> Self
Returns self with is_private set to the given Option.
Sourcepub fn reset_is_mpim(&mut self) -> &mut Self
pub fn reset_is_mpim(&mut self) -> &mut Self
Sets is_mpim to None.
Sourcepub fn mopt_is_mpim(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_mpim(&mut self, value: Option<bool>) -> &mut Self
Sets is_mpim to the given Option.
Sourcepub fn with_is_mpim(self, value: bool) -> Self
pub fn with_is_mpim(self, value: bool) -> Self
Returns self with is_mpim set to Some(value).
Sourcepub fn without_is_mpim(self) -> Self
pub fn without_is_mpim(self) -> Self
Returns self with is_mpim set to None.
Sourcepub fn opt_is_mpim(self, value: Option<bool>) -> Self
pub fn opt_is_mpim(self, value: Option<bool>) -> Self
Returns self with is_mpim set to the given Option.
Sourcepub fn is_user_deleted(&mut self, value: bool) -> &mut Self
pub fn is_user_deleted(&mut self, value: bool) -> &mut Self
Sets is_user_deleted to Some(value).
Sourcepub fn reset_is_user_deleted(&mut self) -> &mut Self
pub fn reset_is_user_deleted(&mut self) -> &mut Self
Sets is_user_deleted to None.
Sourcepub fn mopt_is_user_deleted(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_user_deleted(&mut self, value: Option<bool>) -> &mut Self
Sets is_user_deleted to the given Option.
Sourcepub fn with_is_user_deleted(self, value: bool) -> Self
pub fn with_is_user_deleted(self, value: bool) -> Self
Returns self with is_user_deleted set to Some(value).
Sourcepub fn without_is_user_deleted(self) -> Self
pub fn without_is_user_deleted(self) -> Self
Returns self with is_user_deleted set to None.
Sourcepub fn opt_is_user_deleted(self, value: Option<bool>) -> Self
pub fn opt_is_user_deleted(self, value: Option<bool>) -> Self
Returns self with is_user_deleted set to the given Option.