pub struct SlackMessageOrigin {
pub ts: SlackTs,
pub channel: Option<SlackChannelId>,
pub channel_type: Option<SlackChannelType>,
pub thread_ts: Option<SlackTs>,
pub client_msg_id: Option<SlackClientMessageId>,
}Fields§
§ts: SlackTs§channel: Option<SlackChannelId>§channel_type: Option<SlackChannelType>§thread_ts: Option<SlackTs>§client_msg_id: Option<SlackClientMessageId>Implementations§
Source§impl SlackMessageOrigin
impl SlackMessageOrigin
Sourcepub fn new(ts: SlackTs) -> Self
pub fn new(ts: SlackTs) -> Self
Creates a new SlackMessageOrigin 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 channel_type(&mut self, value: SlackChannelType) -> &mut Self
pub fn channel_type(&mut self, value: SlackChannelType) -> &mut Self
Sets channel_type to Some(value).
Sourcepub fn reset_channel_type(&mut self) -> &mut Self
pub fn reset_channel_type(&mut self) -> &mut Self
Sets channel_type to None.
Sourcepub fn mopt_channel_type(
&mut self,
value: Option<SlackChannelType>,
) -> &mut Self
pub fn mopt_channel_type( &mut self, value: Option<SlackChannelType>, ) -> &mut Self
Sets channel_type to the given Option.
Sourcepub fn with_channel_type(self, value: SlackChannelType) -> Self
pub fn with_channel_type(self, value: SlackChannelType) -> Self
Returns self with channel_type set to Some(value).
Sourcepub fn without_channel_type(self) -> Self
pub fn without_channel_type(self) -> Self
Returns self with channel_type set to None.
Sourcepub fn opt_channel_type(self, value: Option<SlackChannelType>) -> Self
pub fn opt_channel_type(self, value: Option<SlackChannelType>) -> Self
Returns self with channel_type set to the given Option.
Sourcepub fn reset_thread_ts(&mut self) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
Sets thread_ts to None.
Sourcepub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets thread_ts to the given Option.
Sourcepub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
Returns self with thread_ts set to Some(value).
Sourcepub fn without_thread_ts(self) -> Self
pub fn without_thread_ts(self) -> Self
Returns self with thread_ts set to None.
Sourcepub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
Returns self with thread_ts set to the given Option.
Sourcepub fn client_msg_id(&mut self, value: SlackClientMessageId) -> &mut Self
pub fn client_msg_id(&mut self, value: SlackClientMessageId) -> &mut Self
Sets client_msg_id to Some(value).
Sourcepub fn reset_client_msg_id(&mut self) -> &mut Self
pub fn reset_client_msg_id(&mut self) -> &mut Self
Sets client_msg_id to None.
Sourcepub fn mopt_client_msg_id(
&mut self,
value: Option<SlackClientMessageId>,
) -> &mut Self
pub fn mopt_client_msg_id( &mut self, value: Option<SlackClientMessageId>, ) -> &mut Self
Sets client_msg_id to the given Option.
Sourcepub fn with_client_msg_id(self, value: SlackClientMessageId) -> Self
pub fn with_client_msg_id(self, value: SlackClientMessageId) -> Self
Returns self with client_msg_id set to Some(value).
Sourcepub fn without_client_msg_id(self) -> Self
pub fn without_client_msg_id(self) -> Self
Returns self with client_msg_id set to None.
Sourcepub fn opt_client_msg_id(self, value: Option<SlackClientMessageId>) -> Self
pub fn opt_client_msg_id(self, value: Option<SlackClientMessageId>) -> Self
Returns self with client_msg_id set to the given Option.