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

author: Option<EmbedAuthor>

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

footer: Option<EmbedFooter>

The footer of the embed

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.