pub struct EmbedAuthorBuilder(/* private fields */);Available on crate feature
builder only.Expand description
Create an embed author with a builder.
This can be passed into EmbedBuilder::author.
Implementations§
Source§impl EmbedAuthorBuilder
impl EmbedAuthorBuilder
Sourcepub fn build(self) -> EmbedAuthor
pub fn build(self) -> EmbedAuthor
Build into an embed author.
Sourcepub fn icon_url(self, image_source: ImageSource) -> Self
pub fn icon_url(self, image_source: ImageSource) -> Self
Add an author icon.
Trait Implementations§
Source§impl Clone for EmbedAuthorBuilder
impl Clone for EmbedAuthorBuilder
Source§impl Debug for EmbedAuthorBuilder
impl Debug for EmbedAuthorBuilder
impl Eq 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 StructuralPartialEq for EmbedAuthorBuilder
Auto Trait Implementations§
impl Forget for EmbedAuthorBuilder
impl Freeze for EmbedAuthorBuilder
impl Move for EmbedAuthorBuilder
impl RefUnwindSafe for EmbedAuthorBuilder
impl Send for EmbedAuthorBuilderwhere
RawVecInner: Send,
impl Sync for EmbedAuthorBuilderwhere
RawVecInner: Sync,
impl Unpin for EmbedAuthorBuilder
impl UnsafeUnpin for EmbedAuthorBuilder
impl UnwindSafe for EmbedAuthorBuilderwhere
RawVecInner: UnwindSafe,
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