pub struct EmbedAuthor {
pub name: String,
pub url: Option<Url>,
pub icon_url: Option<Url>,
}Expand description
Describes an embed author
Fields§
§name: StringAuthor name
url: Option<Url>URL of the author
icon_url: Option<Url>Avatar URL for the author
Trait Implementations§
Source§impl Debug for EmbedAuthor
impl Debug for EmbedAuthor
Source§impl Default for EmbedAuthor
impl Default for EmbedAuthor
Source§fn default() -> EmbedAuthor
fn default() -> EmbedAuthor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbedAuthor
impl<'de> Deserialize<'de> for EmbedAuthor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmbedAuthor
impl RefUnwindSafe for EmbedAuthor
impl Send for EmbedAuthor
impl Sync for EmbedAuthor
impl Unpin for EmbedAuthor
impl UnwindSafe for EmbedAuthor
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