pub struct EmbedAuthorBuilder(/* private fields */);👎Deprecated since 0.10.1: use twilight_util::builder::embed
Expand description
Create an embed author with a builder.
This can be passed into EmbedBuilder::author.
Implementations§
Source§impl 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
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
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
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
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§
Source§impl Clone for EmbedAuthorBuilder
impl Clone for EmbedAuthorBuilder
Source§fn clone(&self) -> EmbedAuthorBuilder
fn clone(&self) -> EmbedAuthorBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbedAuthorBuilder
impl Debug for EmbedAuthorBuilder
Source§impl From<EmbedAuthorBuilder> for EmbedAuthor
impl From<EmbedAuthorBuilder> for EmbedAuthor
Source§fn 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.
Source§impl PartialEq for EmbedAuthorBuilder
impl PartialEq for EmbedAuthorBuilder
impl Eq for EmbedAuthorBuilder
impl StructuralPartialEq for EmbedAuthorBuilder
Auto Trait Implementations§
impl Freeze for EmbedAuthorBuilder
impl RefUnwindSafe for EmbedAuthorBuilder
impl Send for EmbedAuthorBuilder
impl Sync for EmbedAuthorBuilder
impl Unpin for EmbedAuthorBuilder
impl UnwindSafe for EmbedAuthorBuilder
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