pub struct Embed {Show 13 fields
pub title: Option<String>,
pub kind: String,
pub description: Option<String>,
pub url: Option<String>,
pub timestamp: Option<String>,
pub color: Option<u32>,
pub footer: Option<EmbedFooter>,
pub image: Option<EmbedImage>,
pub thumbnail: Option<EmbedThumbnail>,
pub video: Option<EmbedVideo>,
pub provider: Option<EmbedProvider>,
pub author: Option<EmbedAuthor>,
pub fields: Vec<EmbedField>,
}Fields§
§title: Option<String>Title of embed
kind: StringType of embed (rich, image, video, gifv, article, link, poll_result)
description: Option<String>Description of embed
url: Option<String>URL of embed
timestamp: Option<String>Timestamp of embed content
color: Option<u32>Color code of the embed
Footer information
image: Option<EmbedImage>Image information
thumbnail: Option<EmbedThumbnail>Thumbnail information
video: Option<EmbedVideo>Video information
provider: Option<EmbedProvider>Provider information
Author information
fields: Vec<EmbedField>Fields information (max 25 fields)
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
Source§impl From<EmbedBuilder> for Embed
impl From<EmbedBuilder> for Embed
Source§fn from(builder: EmbedBuilder) -> Self
fn from(builder: EmbedBuilder) -> Self
Converts to this type from the input type.
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