pub struct Embed { /* private fields */ }Implementations§
Source§impl Embed
impl Embed
pub fn new() -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn url(self, url: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn color(self, color: u32) -> Self
pub fn add_field(self, field: Field) -> Self
pub fn thumbnail(self, thumbnail: impl Into<String>) -> Self
pub fn image(self, image: impl Into<String>) -> Self
pub fn build(&self) -> Result<Value, Error>
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