pub struct GenericEmbedAuthor {
pub name: String,
pub url: Option<String>,
pub icon_url: Option<String>,
}Expand description
Author information displayed at the top of an embed.
Fields§
§name: StringThe author’s name.
url: Option<String>Optional URL that the author name links to.
icon_url: Option<String>Optional URL to an icon displayed next to the author’s name.
Trait Implementations§
Source§impl Clone for GenericEmbedAuthor
impl Clone for GenericEmbedAuthor
Source§impl Debug for GenericEmbedAuthor
impl Debug for GenericEmbedAuthor
Source§impl<'de> Deserialize<'de> for GenericEmbedAuthor
impl<'de> Deserialize<'de> for GenericEmbedAuthor
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 GenericEmbedAuthor
impl RefUnwindSafe for GenericEmbedAuthor
impl Send for GenericEmbedAuthor
impl Sync for GenericEmbedAuthor
impl Unpin for GenericEmbedAuthor
impl UnsafeUnpin for GenericEmbedAuthor
impl UnwindSafe for GenericEmbedAuthor
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