pub struct CreateEmbedFooter(/* private fields */);
Expand description
A builder to create the footer data for an embed. See CreateEmbed::footer
Implementations§
Sourcepub fn new(text: impl Into<String>) -> Self
pub fn new(text: impl Into<String>) -> Self
Creates a new footer object with the given text, leaving all other fields empty.
Sourcepub fn text(self, text: impl Into<String>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
Set the footer’s text, replacing the current value as set in Self::new
.
Sourcepub fn icon_url(self, icon_url: impl Into<String>) -> Self
pub fn icon_url(self, icon_url: impl Into<String>) -> Self
Set the icon URL’s value.
Refer CreateEmbed::image
for rules on naming local attachments.
Trait Implementations§
Source§fn clone(&self) -> CreateEmbedFooter
fn clone(&self) -> CreateEmbedFooter
Returns a copy 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§fn from(footer: EmbedFooter) -> Self
fn from(footer: EmbedFooter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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