pub struct Embed {
pub title: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub timestamp: Option<Timestamp>,
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: Option<Vec<EmbedField>>,
}Fields§
§title: Option<String>§description: Option<String>§url: Option<String>§timestamp: Option<Timestamp>§color: Option<u32>§image: Option<EmbedImage>§thumbnail: Option<EmbedThumbnail>§video: Option<EmbedVideo>§provider: Option<EmbedProvider>§fields: Option<Vec<EmbedField>>Implementations§
Source§impl Embed
impl Embed
pub fn new() -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
pub fn timestamp(self, timestamp: Timestamp) -> Self
pub fn color(self, color: u32) -> Self
pub fn image<Func>(self, function: Func) -> Self
pub fn thumbnail<Func>(self, function: Func) -> Self
pub fn video<Func>(self, function: Func) -> Self
pub fn provider<Func>(self, function: Func) -> Self
pub fn field<Func>(self, function: Func) -> Self
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 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