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>) -> CreateEmbedFooter
pub fn new(text: impl Into<String>) -> CreateEmbedFooter
Creates a new footer object with the given text, leaving all other fields empty.
Sourcepub fn text(self, text: impl Into<String>) -> CreateEmbedFooter
pub fn text(self, text: impl Into<String>) -> CreateEmbedFooter
Set the footer’s text, replacing the current value as set in Self::new
.
Sourcepub fn icon_url(self, icon_url: impl Into<String>) -> CreateEmbedFooter
pub fn icon_url(self, icon_url: impl Into<String>) -> CreateEmbedFooter
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) -> CreateEmbedFooter
fn from(footer: EmbedFooter) -> CreateEmbedFooter
Converts to this type from the input type.
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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