pub struct Embed {
pub title: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub timestamp: Option<String>,
pub color: Option<String>,
pub footer: Option<EmbedFooter>,
pub image: Option<EmbedImage>,
pub video: Option<EmbedVideo>,
pub thumbnail: Option<EmbedThumbnail>,
pub provider: Option<EmbedProvider>,
pub author: Option<EmbedAuthor>,
pub fields: Vec<EmbedField>,
/* private fields */
}Fields§
§title: Option<String>§description: Option<String>§url: Option<String>§timestamp: Option<String>§color: Option<String>§image: Option<EmbedImage>§video: Option<EmbedVideo>§thumbnail: Option<EmbedThumbnail>§provider: Option<EmbedProvider>§fields: Vec<EmbedField>Implementations§
Source§impl Embed
impl Embed
pub fn new() -> Self
pub fn title(&mut self, title: &str) -> &mut Self
pub fn description(&mut self, description: &str) -> &mut Self
pub fn url(&mut self, url: &str) -> &mut Self
pub fn timestamp(&mut self, timestamp: &str) -> &mut Self
pub fn color(&mut self, color: &str) -> &mut Self
pub fn image(&mut self, url: &str) -> &mut Self
pub fn video(&mut self, url: &str) -> &mut Self
pub fn thumbnail(&mut self, url: &str) -> &mut Self
pub fn provider(&mut self, name: &str, url: &str) -> &mut Self
pub fn field(&mut self, name: &str, value: &str, inline: bool) -> &mut Self
Trait Implementations§
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