pub struct SlackApiStarsRemoveRequest {
pub channel: Option<SlackChannelId>,
pub file: Option<SlackFileId>,
pub file_comment: Option<SlackFileCommentId>,
pub timestamp: Option<SlackTs>,
}Fields§
§channel: Option<SlackChannelId>§file: Option<SlackFileId>§file_comment: Option<SlackFileCommentId>§timestamp: Option<SlackTs>Implementations§
Source§impl SlackApiStarsRemoveRequest
impl SlackApiStarsRemoveRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiStarsRemoveRequest 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 file(&mut self, value: SlackFileId) -> &mut Self
pub fn file(&mut self, value: SlackFileId) -> &mut Self
Sets file to Some(value).
Sourcepub fn reset_file(&mut self) -> &mut Self
pub fn reset_file(&mut self) -> &mut Self
Sets file to None.
Sourcepub fn mopt_file(&mut self, value: Option<SlackFileId>) -> &mut Self
pub fn mopt_file(&mut self, value: Option<SlackFileId>) -> &mut Self
Sets file to the given Option.
Sourcepub fn with_file(self, value: SlackFileId) -> Self
pub fn with_file(self, value: SlackFileId) -> Self
Returns self with file set to Some(value).
Sourcepub fn without_file(self) -> Self
pub fn without_file(self) -> Self
Returns self with file set to None.
Sourcepub fn opt_file(self, value: Option<SlackFileId>) -> Self
pub fn opt_file(self, value: Option<SlackFileId>) -> Self
Returns self with file set to the given Option.
Sourcepub fn file_comment(&mut self, value: SlackFileCommentId) -> &mut Self
pub fn file_comment(&mut self, value: SlackFileCommentId) -> &mut Self
Sets file_comment to Some(value).
Sourcepub fn reset_file_comment(&mut self) -> &mut Self
pub fn reset_file_comment(&mut self) -> &mut Self
Sets file_comment to None.
Sourcepub fn mopt_file_comment(
&mut self,
value: Option<SlackFileCommentId>,
) -> &mut Self
pub fn mopt_file_comment( &mut self, value: Option<SlackFileCommentId>, ) -> &mut Self
Sets file_comment to the given Option.
Sourcepub fn with_file_comment(self, value: SlackFileCommentId) -> Self
pub fn with_file_comment(self, value: SlackFileCommentId) -> Self
Returns self with file_comment set to Some(value).
Sourcepub fn without_file_comment(self) -> Self
pub fn without_file_comment(self) -> Self
Returns self with file_comment set to None.
Sourcepub fn opt_file_comment(self, value: Option<SlackFileCommentId>) -> Self
pub fn opt_file_comment(self, value: Option<SlackFileCommentId>) -> Self
Returns self with file_comment set to the given Option.
Sourcepub fn reset_timestamp(&mut self) -> &mut Self
pub fn reset_timestamp(&mut self) -> &mut Self
Sets timestamp to None.
Sourcepub fn mopt_timestamp(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_timestamp(&mut self, value: Option<SlackTs>) -> &mut Self
Sets timestamp to the given Option.
Sourcepub fn with_timestamp(self, value: SlackTs) -> Self
pub fn with_timestamp(self, value: SlackTs) -> Self
Returns self with timestamp set to Some(value).
Sourcepub fn without_timestamp(self) -> Self
pub fn without_timestamp(self) -> Self
Returns self with timestamp set to None.
Sourcepub fn opt_timestamp(self, value: Option<SlackTs>) -> Self
pub fn opt_timestamp(self, value: Option<SlackTs>) -> Self
Returns self with timestamp set to the given Option.