pub struct SlackApiReactionsGetRequest {
pub channel: Option<SlackChannelId>,
pub file: Option<SlackFileId>,
pub full: Option<bool>,
pub timestamp: Option<SlackTs>,
}Fields§
§channel: Option<SlackChannelId>§file: Option<SlackFileId>§full: Option<bool>§timestamp: Option<SlackTs>Implementations§
Source§impl SlackApiReactionsGetRequest
impl SlackApiReactionsGetRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackApiReactionsGetRequest 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 reset_full(&mut self) -> &mut Self
pub fn reset_full(&mut self) -> &mut Self
Sets full to None.
Sourcepub fn without_full(self) -> Self
pub fn without_full(self) -> Self
Returns self with full set to None.
Sourcepub fn opt_full(self, value: Option<bool>) -> Self
pub fn opt_full(self, value: Option<bool>) -> Self
Returns self with full 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.