Struct discord_message::Embed [−][src]
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
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 RefUnwindSafe for Embed
impl UnwindSafe for Embed