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
pub fn new(url: SlackRelaxedUrl) -> Self
pub fn url(&mut self, value: SlackRelaxedUrl) -> &mut Self
pub fn with_url(self, value: SlackRelaxedUrl) -> Self
pub fn text(&mut self, value: String) -> &mut Self
pub fn reset_text(&mut self) -> &mut Self
pub fn mopt_text(&mut self, value: Option<String>) -> &mut Self
pub fn with_text(self, value: String) -> Self
pub fn without_text(self) -> Self
pub fn opt_text(self, value: Option<String>) -> Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn without_channel_id(self) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn message_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_message_ts(&mut self) -> &mut Self
pub fn mopt_message_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_message_ts(self, value: SlackTs) -> Self
pub fn without_message_ts(self) -> Self
pub fn opt_message_ts(self, value: Option<SlackTs>) -> Self
pub fn thread_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn without_thread_ts(self) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn style(&mut self, value: SlackRichTextStyle) -> &mut Self
pub fn reset_style(&mut self) -> &mut Self
pub fn mopt_style(&mut self, value: Option<SlackRichTextStyle>) -> &mut Self
pub fn with_style(self, value: SlackRichTextStyle) -> Self
pub fn without_style(self) -> Self
pub fn opt_style(self, value: Option<SlackRichTextStyle>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextMessageMention
impl Clone for SlackRichTextMessageMention
Source§fn clone(&self) -> SlackRichTextMessageMention
fn clone(&self) -> SlackRichTextMessageMention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackRichTextMessageMention
impl Debug for SlackRichTextMessageMention
Source§impl<'de> Deserialize<'de> for SlackRichTextMessageMention
impl<'de> Deserialize<'de> for SlackRichTextMessageMention
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackRichTextMessageMentionInit> for SlackRichTextMessageMention
impl From<SlackRichTextMessageMentionInit> for SlackRichTextMessageMention
Source§fn from(value: SlackRichTextMessageMentionInit) -> Self
fn from(value: SlackRichTextMessageMentionInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackRichTextMessageMention
Auto Trait Implementations§
impl Freeze for SlackRichTextMessageMention
impl RefUnwindSafe for SlackRichTextMessageMention
impl Send for SlackRichTextMessageMention
impl Sync for SlackRichTextMessageMention
impl Unpin for SlackRichTextMessageMention
impl UnsafeUnpin for SlackRichTextMessageMention
impl UnwindSafe for SlackRichTextMessageMention
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more