pub struct SlackBlockConversationFilter {
pub include: Option<Vec<SlackConversationFilterInclude>>,
pub exclude_external_shared_channels: Option<bool>,
pub exclude_bot_users: Option<bool>,
}Fields§
§include: Option<Vec<SlackConversationFilterInclude>>§exclude_bot_users: Option<bool>Implementations§
Source§impl SlackBlockConversationFilter
impl SlackBlockConversationFilter
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackBlockConversationFilter from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn include(
&mut self,
value: Vec<SlackConversationFilterInclude>,
) -> &mut Self
pub fn include( &mut self, value: Vec<SlackConversationFilterInclude>, ) -> &mut Self
Sets include to Some(value).
Sourcepub fn reset_include(&mut self) -> &mut Self
pub fn reset_include(&mut self) -> &mut Self
Sets include to None.
Sourcepub fn mopt_include(
&mut self,
value: Option<Vec<SlackConversationFilterInclude>>,
) -> &mut Self
pub fn mopt_include( &mut self, value: Option<Vec<SlackConversationFilterInclude>>, ) -> &mut Self
Sets include to the given Option.
Sourcepub fn with_include(self, value: Vec<SlackConversationFilterInclude>) -> Self
pub fn with_include(self, value: Vec<SlackConversationFilterInclude>) -> Self
Returns self with include set to Some(value).
Sourcepub fn without_include(self) -> Self
pub fn without_include(self) -> Self
Returns self with include set to None.
Sourcepub fn opt_include(
self,
value: Option<Vec<SlackConversationFilterInclude>>,
) -> Self
pub fn opt_include( self, value: Option<Vec<SlackConversationFilterInclude>>, ) -> Self
Returns self with include set to the given Option.
Sets exclude_external_shared_channels to Some(value).
Sets exclude_external_shared_channels to None.
Sets exclude_external_shared_channels to the given Option.
Returns self with exclude_external_shared_channels set to Some(value).
Returns self with exclude_external_shared_channels set to None.
Returns self with exclude_external_shared_channels set to the given Option.
Sourcepub fn exclude_bot_users(&mut self, value: bool) -> &mut Self
pub fn exclude_bot_users(&mut self, value: bool) -> &mut Self
Sets exclude_bot_users to Some(value).
Sourcepub fn reset_exclude_bot_users(&mut self) -> &mut Self
pub fn reset_exclude_bot_users(&mut self) -> &mut Self
Sets exclude_bot_users to None.
Sourcepub fn mopt_exclude_bot_users(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_exclude_bot_users(&mut self, value: Option<bool>) -> &mut Self
Sets exclude_bot_users to the given Option.
Sourcepub fn with_exclude_bot_users(self, value: bool) -> Self
pub fn with_exclude_bot_users(self, value: bool) -> Self
Returns self with exclude_bot_users set to Some(value).
Sourcepub fn without_exclude_bot_users(self) -> Self
pub fn without_exclude_bot_users(self) -> Self
Returns self with exclude_bot_users set to None.
Sourcepub fn opt_exclude_bot_users(self, value: Option<bool>) -> Self
pub fn opt_exclude_bot_users(self, value: Option<bool>) -> Self
Returns self with exclude_bot_users set to the given Option.