pub struct MessageMentionElement {
pub channel_id: String,
pub message_ts: String,
pub author_id: Option<String>,
pub thread_ts: Option<String>,
pub style: Option<RichTextStyle>,
pub text: Option<String>,
pub url: Option<String>,
/* private fields */
}Expand description
A link to a Slack message. https://docs.slack.dev/reference/block-kit/block-elements/message-mention-element
Fields§
§channel_id: String§message_ts: String§thread_ts: Option<String>§style: Option<RichTextStyle>§text: Option<String>§url: Option<String>Implementations§
Source§impl MessageMentionElement
impl MessageMentionElement
pub fn new(channel_id: impl Into<String>, message_ts: impl Into<String>) -> Self
pub fn thread_ts(self, thread_ts: impl Into<String>) -> Self
pub fn style(self, style: RichTextStyle) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for MessageMentionElement
impl Clone for MessageMentionElement
Source§impl Debug for MessageMentionElement
impl Debug for MessageMentionElement
Source§impl<'de> Deserialize<'de> for MessageMentionElement
impl<'de> Deserialize<'de> for MessageMentionElement
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<MessageMentionElement> for RichTextElement
impl From<MessageMentionElement> for RichTextElement
Source§fn from(value: MessageMentionElement) -> Self
fn from(value: MessageMentionElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageMentionElement
impl PartialEq for MessageMentionElement
Source§impl Serialize for MessageMentionElement
impl Serialize for MessageMentionElement
impl StructuralPartialEq for MessageMentionElement
Auto Trait Implementations§
impl Freeze for MessageMentionElement
impl RefUnwindSafe for MessageMentionElement
impl Send for MessageMentionElement
impl Sync for MessageMentionElement
impl Unpin for MessageMentionElement
impl UnsafeUnpin for MessageMentionElement
impl UnwindSafe for MessageMentionElement
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