pub struct EmbedAuthorBuilder(_);
use twilight_util::builder::embed
Expand description
Create an embed author with a builder.
This can be passed into EmbedBuilder::author
.
Implementations
sourceimpl EmbedAuthorBuilder
impl EmbedAuthorBuilder
sourcepub const fn new(name: String) -> Self
👎 Deprecated since 0.10.1: use twilight_util::builder::embed
pub const fn new(name: String) -> Self
use twilight_util::builder::embed
Create a new embed author builder.
sourcepub fn build(self) -> EmbedAuthor
👎 Deprecated since 0.10.1: use twilight_util::builder::embed
pub fn build(self) -> EmbedAuthor
use twilight_util::builder::embed
Build into an embed author.
sourcepub fn icon_url(self, image_source: ImageSource) -> Self
👎 Deprecated since 0.10.1: use twilight_util::builder::embed
pub fn icon_url(self, image_source: ImageSource) -> Self
use twilight_util::builder::embed
Add an author icon.
sourcepub fn name(self, name: impl Into<String>) -> Self
👎 Deprecated since 0.10.1: use twilight_util::builder::embed
pub fn name(self, name: impl Into<String>) -> Self
use twilight_util::builder::embed
The author’s name.
Refer to EmbedBuilder::AUTHOR_NAME_LENGTH_LIMIT
for the maximum
number of UTF-16 code points that can be in an author name.
Trait Implementations
sourceimpl Clone for EmbedAuthorBuilder
impl Clone for EmbedAuthorBuilder
sourcefn clone(&self) -> EmbedAuthorBuilder
fn clone(&self) -> EmbedAuthorBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EmbedAuthorBuilder
impl Debug for EmbedAuthorBuilder
sourceimpl From<EmbedAuthorBuilder> for EmbedAuthor
impl From<EmbedAuthorBuilder> for EmbedAuthor
sourcefn from(builder: EmbedAuthorBuilder) -> Self
fn from(builder: EmbedAuthorBuilder) -> Self
Convert an embed author builder into an embed author.
This is equivalent to calling EmbedAuthorBuilder::build
.
sourceimpl PartialEq<EmbedAuthorBuilder> for EmbedAuthorBuilder
impl PartialEq<EmbedAuthorBuilder> for EmbedAuthorBuilder
sourcefn eq(&self, other: &EmbedAuthorBuilder) -> bool
fn eq(&self, other: &EmbedAuthorBuilder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EmbedAuthorBuilder) -> bool
fn ne(&self, other: &EmbedAuthorBuilder) -> bool
This method tests for !=
.
impl Eq for EmbedAuthorBuilder
impl StructuralEq for EmbedAuthorBuilder
impl StructuralPartialEq for EmbedAuthorBuilder
Auto Trait Implementations
impl RefUnwindSafe for EmbedAuthorBuilder
impl Send for EmbedAuthorBuilder
impl Sync for EmbedAuthorBuilder
impl Unpin for EmbedAuthorBuilder
impl UnwindSafe for EmbedAuthorBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more