Struct noob::builder::EmbedBuilder [−][src]
Builder for a message embed
Implementations
impl<'a> EmbedBuilder<'a>
[src]
pub fn new() -> Self
[src]
pub fn set_title(&mut self, title: &'a str)
[src]
pub fn with_title(self, title: &'a str) -> Self
[src]
pub fn set_author(&mut self, author: &'a EmbedAuthor<'a>)
[src]
pub fn with_author(self, author: &'a EmbedAuthor<'a>) -> Self
[src]
pub fn set_color(&mut self, color: u32)
[src]
pub fn with_color(self, color: u32) -> Self
[src]
pub fn add_field(&mut self, field: &'a EmbedField<'a>)
[src]
pub fn with_field(self, field: &'a EmbedField<'a>) -> Self
[src]
pub fn set_footer(&mut self, footer: &'a EmbedFooter<'a>)
[src]
pub fn with_footer(self, footer: &'a EmbedFooter<'a>) -> Self
[src]
pub fn set_description(&mut self, description: &'a str)
[src]
pub fn with_description(self, description: &'a str) -> Self
[src]
pub fn set_timestamp(&mut self, timestamp: &'a str)
[src]
pub fn with_timestamp(self, timestamp: &'a str) -> Self
[src]
Trait Implementations
impl<'a> Debug for EmbedBuilder<'a>
[src]
impl<'a> Default for EmbedBuilder<'a>
[src]
fn default() -> EmbedBuilder<'a>
[src]
impl<'a> Serialize for EmbedBuilder<'a>
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,