pub struct SlackRichTextMessageMention {
pub url: SlackRelaxedUrl,
pub text: Option<String>,
pub channel_id: Option<SlackChannelId>,
pub author_id: Option<SlackUserId>,
pub message_ts: Option<SlackTs>,
pub thread_ts: Option<SlackTs>,
pub style: Option<SlackRichTextStyle>,
}Fields§
§url: SlackRelaxedUrl§text: Option<String>§channel_id: Option<SlackChannelId>§message_ts: Option<SlackTs>§thread_ts: Option<SlackTs>§style: Option<SlackRichTextStyle>Implementations§
Source§impl SlackRichTextMessageMention
impl SlackRichTextMessageMention
Sourcepub fn new(url: SlackRelaxedUrl) -> Self
pub fn new(url: SlackRelaxedUrl) -> Self
Creates a new SlackRichTextMessageMention from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn url(&mut self, value: SlackRelaxedUrl) -> &mut Self
pub fn url(&mut self, value: SlackRelaxedUrl) -> &mut Self
Sets url to value.
Sourcepub fn with_url(self, value: SlackRelaxedUrl) -> Self
pub fn with_url(self, value: SlackRelaxedUrl) -> Self
Returns self with url set to value.
Sourcepub fn reset_text(&mut self) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
Sets text to None.
Sourcepub fn without_text(self) -> Self
pub fn without_text(self) -> Self
Returns self with text set to None.
Sourcepub fn opt_text(self, value: Option<String>) -> Self
pub fn opt_text(self, value: Option<String>) -> Self
Returns self with text set to the given Option.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to Some(value).
Sourcepub fn reset_channel_id(&mut self) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
Sets channel_id to None.
Sourcepub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel_id to the given Option.
Sourcepub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
Returns self with channel_id set to Some(value).
Sourcepub fn without_channel_id(self) -> Self
pub fn without_channel_id(self) -> Self
Returns self with channel_id set to None.
Sourcepub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
Returns self with channel_id set to the given Option.
Sets author_id to Some(value).
Sets author_id to None.
Sets author_id to the given Option.
Returns self with author_id set to Some(value).
Returns self with author_id set to None.
Returns self with author_id set to the given Option.
Sourcepub fn message_ts(&mut self, value: SlackTs) -> &mut Self
pub fn message_ts(&mut self, value: SlackTs) -> &mut Self
Sets message_ts to Some(value).
Sourcepub fn reset_message_ts(&mut self) -> &mut Self
pub fn reset_message_ts(&mut self) -> &mut Self
Sets message_ts to None.
Sourcepub fn mopt_message_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_message_ts(&mut self, value: Option<SlackTs>) -> &mut Self
Sets message_ts to the given Option.
Sourcepub fn with_message_ts(self, value: SlackTs) -> Self
pub fn with_message_ts(self, value: SlackTs) -> Self
Returns self with message_ts set to Some(value).
Sourcepub fn without_message_ts(self) -> Self
pub fn without_message_ts(self) -> Self
Returns self with message_ts set to None.
Sourcepub fn opt_message_ts(self, value: Option<SlackTs>) -> Self
pub fn opt_message_ts(self, value: Option<SlackTs>) -> Self
Returns self with message_ts 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 style(&mut self, value: SlackRichTextStyle) -> &mut Self
pub fn style(&mut self, value: SlackRichTextStyle) -> &mut Self
Sets style to Some(value).
Sourcepub fn reset_style(&mut self) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
Sets style to None.
Sourcepub fn mopt_style(&mut self, value: Option<SlackRichTextStyle>) -> &mut Self
pub fn mopt_style(&mut self, value: Option<SlackRichTextStyle>) -> &mut Self
Sets style to the given Option.
Sourcepub fn with_style(self, value: SlackRichTextStyle) -> Self
pub fn with_style(self, value: SlackRichTextStyle) -> Self
Returns self with style set to Some(value).
Sourcepub fn without_style(self) -> Self
pub fn without_style(self) -> Self
Returns self with style set to None.
Sourcepub fn opt_style(self, value: Option<SlackRichTextStyle>) -> Self
pub fn opt_style(self, value: Option<SlackRichTextStyle>) -> Self
Returns self with style set to the given Option.