Struct EmbedAuthor
pub struct EmbedAuthor {
pub name: String,
pub url: Option<String>,
pub icon: Option<AttachmentId>,
}Expand description
A message’s rich embed as the protocol has it (Message::embeds); build one to send with
EmbedBuilder.
author: {name, url?, icon?} of an embed.
Fields§
§name: String1–256 scalars.
url: Option<String>The name’s link, under the same rules as Embed::url.
icon: Option<AttachmentId>A small picture: one of the message’s attachments.
Trait Implementations§
§impl Clone for EmbedAuthor
impl Clone for EmbedAuthor
§fn clone(&self) -> EmbedAuthor
fn clone(&self) -> EmbedAuthor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EmbedAuthor
impl Debug for EmbedAuthor
§impl<'de> Deserialize<'de> for EmbedAuthor
impl<'de> Deserialize<'de> for EmbedAuthor
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbedAuthor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmbedAuthor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EmbedAuthor
§impl PartialEq for EmbedAuthor
impl PartialEq for EmbedAuthor
§impl Serialize for EmbedAuthor
impl Serialize for EmbedAuthor
§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
impl StructuralPartialEq for EmbedAuthor
Auto Trait Implementations§
impl Freeze for EmbedAuthor
impl RefUnwindSafe for EmbedAuthor
impl Send for EmbedAuthor
impl Sync for EmbedAuthor
impl Unpin for EmbedAuthor
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more