pub struct AttachmentMentionElement {
pub url: String,
pub text: Option<String>,
pub app_id: Option<String>,
pub entity_id: Option<String>,
pub icon_url: Option<String>,
pub channel_id: Option<String>,
pub ts: Option<String>,
pub full_size_preview_enabled: Option<bool>,
pub icon_name: Option<String>,
pub reference_object_type: Option<String>,
pub product_name: Option<String>,
pub style: Option<RichTextStyle>,
/* private fields */
}Expand description
A reference to an app attachment or entity. https://docs.slack.dev/reference/block-kit/block-elements/attachment-mention-element
Fields§
§url: String§text: Option<String>§app_id: Option<String>§entity_id: Option<String>§icon_url: Option<String>§channel_id: Option<String>§ts: Option<String>§full_size_preview_enabled: Option<bool>§icon_name: Option<String>§reference_object_type: Option<String>§product_name: Option<String>§style: Option<RichTextStyle>Implementations§
Source§impl AttachmentMentionElement
impl AttachmentMentionElement
pub fn new(url: impl Into<String>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn app_id(self, app_id: impl Into<String>) -> Self
pub fn entity_id(self, entity_id: impl Into<String>) -> Self
pub fn icon_url(self, icon_url: impl Into<String>) -> Self
pub fn channel_id(self, channel_id: impl Into<String>) -> Self
pub fn ts(self, ts: impl Into<String>) -> Self
pub fn full_size_preview_enabled(self, full_size_preview_enabled: bool) -> Self
pub fn icon_name(self, icon_name: impl Into<String>) -> Self
pub fn reference_object_type( self, reference_object_type: impl Into<String>, ) -> Self
pub fn product_name(self, product_name: impl Into<String>) -> Self
pub fn style(self, style: RichTextStyle) -> Self
Trait Implementations§
Source§impl Clone for AttachmentMentionElement
impl Clone for AttachmentMentionElement
Source§impl Debug for AttachmentMentionElement
impl Debug for AttachmentMentionElement
Source§impl<'de> Deserialize<'de> for AttachmentMentionElement
impl<'de> Deserialize<'de> for AttachmentMentionElement
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<AttachmentMentionElement> for RichTextElement
impl From<AttachmentMentionElement> for RichTextElement
Source§fn from(value: AttachmentMentionElement) -> Self
fn from(value: AttachmentMentionElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttachmentMentionElement
impl PartialEq for AttachmentMentionElement
Source§impl Serialize for AttachmentMentionElement
impl Serialize for AttachmentMentionElement
impl StructuralPartialEq for AttachmentMentionElement
Auto Trait Implementations§
impl Freeze for AttachmentMentionElement
impl RefUnwindSafe for AttachmentMentionElement
impl Send for AttachmentMentionElement
impl Sync for AttachmentMentionElement
impl Unpin for AttachmentMentionElement
impl UnsafeUnpin for AttachmentMentionElement
impl UnwindSafe for AttachmentMentionElement
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