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
Trait Implementations
Returns the “default value” for a type. Read more
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 DiscordMessage
impl Send for DiscordMessage
impl Sync for DiscordMessage
impl Unpin for DiscordMessage
impl UnwindSafe for DiscordMessage