Struct discord_message::DiscordMessage[][src]

pub struct DiscordMessage {
    pub username: Option<String>,
    pub avatar_url: Option<Url>,
    pub content: String,
    pub embeds: Vec<Embed>,
}
Expand description

The main message type

Fields

username: Option<String>

Bot username override

avatar_url: Option<Url>

Bot avatar override

content: String

Message content

embeds: Vec<Embed>

Any possible embeds

Implementations

Generate JSON data

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.