[][src]Struct spectacles_model::message::Embed

pub struct Embed {
    pub title: String,
    pub kind: String,
    pub description: String,
    pub url: String,
    pub timestamp: String,
    pub color: i32,
    pub footer: EmbedFooter,
    pub image: EmbedImage,
    pub thumbnail: EmbedThumbnail,
    pub video: EmbedVideo,
    pub provider: EmbedProvider,
    pub author: EmbedAuthor,
    pub fields: EmbedField,
}

Represents a Message Embed being sent.

Fields

title: String

The title of the embed.

kind: String

The type of embed.

description: String

The description of the embed.

url: String

The URL of the embed.

timestamp: String

The timestamp of the embed.

color: i32

The color of the embed.

footer: EmbedFooter

Information about the embed's footer.

image: EmbedImage

Information about the embed's image.

thumbnail: EmbedThumbnail

Information about the embed's thumbnail.

video: EmbedVideo

Information about an embed's video, if applicable.

provider: EmbedProvider

Information about an embed's provider if applicable.

author: EmbedAuthor

Information about the embed's author.

fields: EmbedField

Information about the embed's fields.

Trait Implementations

impl Default for Embed[src]

impl Clone for Embed[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Embed[src]

impl Serialize for Embed[src]

impl<'de> Deserialize<'de> for Embed[src]

Auto Trait Implementations

impl Send for Embed

impl Sync for Embed

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]