pub struct Embed {
pub title: Option<String>,
pub kind: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub timestamp: Option<String>,
pub color: Option<u64>,
pub footer: Option<EmbedFooter>,
pub image: Option<EmbedMedia>,
pub thumbnail: Option<EmbedMedia>,
pub video: Option<EmbedMedia>,
pub author: Option<EmbedAuthor>,
pub fields: Option<Vec<EmbedField>>,
}Expand description
Rich embed. Use EmbedBuilder to construct these.
Fields§
§title: Option<String>§kind: Option<String>§description: Option<String>§url: Option<String>§timestamp: Option<String>§color: Option<u64>Sidebar color as an integer, e.g. 0xFF0000 for red.
image: Option<EmbedMedia>§thumbnail: Option<EmbedMedia>§video: Option<EmbedMedia>§fields: Option<Vec<EmbedField>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Embed
impl<'de> Deserialize<'de> for Embed
Source§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 Freeze for Embed
impl RefUnwindSafe for Embed
impl Send for Embed
impl Sync for Embed
impl Unpin for Embed
impl UnsafeUnpin for Embed
impl UnwindSafe for Embed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more