pub struct SlackApiConversationsOpenRequest {
pub channel: Option<SlackChannelId>,
pub return_im: Option<bool>,
pub users: Option<Vec<SlackUserId>>,
}Fields§
§channel: Option<SlackChannelId>§return_im: Option<bool>§users: Option<Vec<SlackUserId>>Implementations§
Source§impl SlackApiConversationsOpenRequest
impl SlackApiConversationsOpenRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiConversationsOpenRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to Some(value).
Sourcepub fn reset_channel(&mut self) -> &mut Self
pub fn reset_channel(&mut self) -> &mut Self
Sets channel to None.
Sourcepub fn mopt_channel(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel to the given Option.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to Some(value).
Sourcepub fn without_channel(self) -> Self
pub fn without_channel(self) -> Self
Returns self with channel set to None.
Sourcepub fn opt_channel(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel(self, value: Option<SlackChannelId>) -> Self
Returns self with channel set to the given Option.
Sourcepub fn reset_return_im(&mut self) -> &mut Self
pub fn reset_return_im(&mut self) -> &mut Self
Sets return_im to None.
Sourcepub fn mopt_return_im(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_return_im(&mut self, value: Option<bool>) -> &mut Self
Sets return_im to the given Option.
Sourcepub fn with_return_im(self, value: bool) -> Self
pub fn with_return_im(self, value: bool) -> Self
Returns self with return_im set to Some(value).
Sourcepub fn without_return_im(self) -> Self
pub fn without_return_im(self) -> Self
Returns self with return_im set to None.
Sourcepub fn opt_return_im(self, value: Option<bool>) -> Self
pub fn opt_return_im(self, value: Option<bool>) -> Self
Returns self with return_im set to the given Option.
Sourcepub fn users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn users(&mut self, value: Vec<SlackUserId>) -> &mut Self
Sets users to Some(value).
Sourcepub fn reset_users(&mut self) -> &mut Self
pub fn reset_users(&mut self) -> &mut Self
Sets users to None.
Sourcepub fn mopt_users(&mut self, value: Option<Vec<SlackUserId>>) -> &mut Self
pub fn mopt_users(&mut self, value: Option<Vec<SlackUserId>>) -> &mut Self
Sets users to the given Option.
Sourcepub fn with_users(self, value: Vec<SlackUserId>) -> Self
pub fn with_users(self, value: Vec<SlackUserId>) -> Self
Returns self with users set to Some(value).
Sourcepub fn without_users(self) -> Self
pub fn without_users(self) -> Self
Returns self with users set to None.
Sourcepub fn opt_users(self, value: Option<Vec<SlackUserId>>) -> Self
pub fn opt_users(self, value: Option<Vec<SlackUserId>>) -> Self
Returns self with users set to the given Option.