pub struct EmbedBuilder<'a> { /* private fields */ }
Expand description
Builder for a message embed
Implementations§
Source§impl<'a> EmbedBuilder<'a>
impl<'a> EmbedBuilder<'a>
pub fn new() -> Self
pub fn set_title(&mut self, title: &'a str)
pub fn with_title(self, title: &'a str) -> Self
pub fn set_color(&mut self, color: u32)
pub fn with_color(self, color: u32) -> Self
pub fn add_field(&mut self, field: &'a EmbedField<'a>)
pub fn with_field(self, field: &'a EmbedField<'a>) -> Self
pub fn set_description(&mut self, description: &'a str)
pub fn with_description(self, description: &'a str) -> Self
pub fn set_timestamp(&mut self, timestamp: &'a str)
pub fn with_timestamp(self, timestamp: &'a str) -> Self
Trait Implementations§
Source§impl<'a> Debug for EmbedBuilder<'a>
impl<'a> Debug for EmbedBuilder<'a>
Source§impl<'a> Default for EmbedBuilder<'a>
impl<'a> Default for EmbedBuilder<'a>
Source§fn default() -> EmbedBuilder<'a>
fn default() -> EmbedBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EmbedBuilder<'a>
impl<'a> RefUnwindSafe for EmbedBuilder<'a>
impl<'a> Send for EmbedBuilder<'a>
impl<'a> Sync for EmbedBuilder<'a>
impl<'a> Unpin for EmbedBuilder<'a>
impl<'a> UnwindSafe for EmbedBuilder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more