pub struct Embed<'a> {Show 13 fields
pub title: Option<TitanString<'a>>,
pub embed_type: Option<TitanString<'a>>,
pub description: Option<TitanString<'a>>,
pub url: Option<TitanString<'a>>,
pub timestamp: Option<TitanString<'a>>,
pub color: Option<u32>,
pub footer: Option<EmbedFooter<'a>>,
pub image: Option<EmbedMedia<'a>>,
pub thumbnail: Option<EmbedMedia<'a>>,
pub video: Option<EmbedMedia<'a>>,
pub provider: Option<EmbedProvider<'a>>,
pub author: Option<EmbedAuthor<'a>>,
pub fields: Vec<EmbedField<'a>>,
}Expand description
An embed in a message.
Fields§
§title: Option<TitanString<'a>>Title.
embed_type: Option<TitanString<'a>>Type.
description: Option<TitanString<'a>>Description.
url: Option<TitanString<'a>>URL.
timestamp: Option<TitanString<'a>>Timestamp.
color: Option<u32>Color.
Footer.
image: Option<EmbedMedia<'a>>Image.
thumbnail: Option<EmbedMedia<'a>>Thumbnail.
video: Option<EmbedMedia<'a>>Video.
provider: Option<EmbedProvider<'a>>Provider.
Author.
fields: Vec<EmbedField<'a>>Fields.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Embed<'a>
impl<'de, 'a> Deserialize<'de> for Embed<'a>
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<'a> From<EmbedBuilder<'a>> for Embed<'a>
impl<'a> From<EmbedBuilder<'a>> for Embed<'a>
Source§fn from(builder: EmbedBuilder<'a>) -> Self
fn from(builder: EmbedBuilder<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Embed<'a>
impl<'a> RefUnwindSafe for Embed<'a>
impl<'a> Send for Embed<'a>
impl<'a> Sync for Embed<'a>
impl<'a> Unpin for Embed<'a>
impl<'a> UnwindSafe for Embed<'a>
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