[][src]Struct twilight_builders::embed::AuthorBuilder

#[must_use = "If commit is not run the author will not be changed."]pub struct AuthorBuilder(_, _);

Implementations

impl AuthorBuilder[src]

pub fn name(self, name: impl Into<String>) -> Self[src]

The author's name.

Limited to 256 UTF-16 code points.

pub fn icon_url(self, icon_url: impl Into<String>) -> Self[src]

Add an author icon.

Either the URL to an image or an attachment:// path.

pub fn url(self, url: impl Into<String>) -> Self[src]

The author's url.

pub fn commit(self) -> EmbedBuilder[src]

Build the author, and return the embed builder.

Auto Trait Implementations

impl RefUnwindSafe for AuthorBuilder

impl Send for AuthorBuilder

impl Sync for AuthorBuilder

impl Unpin for AuthorBuilder

impl UnwindSafe for AuthorBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.