pub struct Embed {
pub title: String,
pub description: String,
pub color: Option<u32>,
pub author: Option<EmbedAuthor>,
pub fields: Option<Vec<EmbedField>>,
pub thumbnail: Option<EmbedThumbnail>,
pub image: Option<EmbedImage>,
pub footer: Option<EmbedFooter>,
}
Expand description
Describes an embed
Fields§
§title: String
The title of the embed
description: String
The description of the embed
color: Option<u32>
The color of the embed
The embed author
fields: Option<Vec<EmbedField>>
Possible fields
thumbnail: Option<EmbedThumbnail>
The thumbnail of the embed
image: Option<EmbedImage>
The image of the embed
The footer of the embed
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embed
impl<'de> Deserialize<'de> for Embed
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
Auto Trait Implementations§
impl Freeze for Embed
impl RefUnwindSafe for Embed
impl Send for Embed
impl Sync for Embed
impl Unpin for Embed
impl UnwindSafe for Embed
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