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<Embed<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Embed<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<EmbedBuilder<'a>> for Embed<'a>
EmbedBuilder automatically converts to Embed
impl<'a> From<EmbedBuilder<'a>> for Embed<'a>
EmbedBuilder automatically converts to Embed
Source§fn from(builder: EmbedBuilder<'a>) -> Embed<'a>
fn from(builder: EmbedBuilder<'a>) -> Embed<'a>
Converts to this type from the input type.
Source§impl<'a> Serialize for Embed<'a>
impl<'a> Serialize for Embed<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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