pub struct SendableEmbed {
pub icon_url: Option<String>,
pub url: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub media: Option<String>,
pub colour: Option<String>,
}
Expand description
Representation of a text embed before it is sent.
Fields§
§icon_url: Option<String>
§url: Option<String>
§title: Option<String>
§description: Option<String>
§media: Option<String>
§colour: Option<String>
Trait Implementations§
Source§impl Clone for SendableEmbed
impl Clone for SendableEmbed
Source§fn clone(&self) -> SendableEmbed
fn clone(&self) -> SendableEmbed
Returns a duplicate 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§impl Debug for SendableEmbed
impl Debug for SendableEmbed
Source§impl Default for SendableEmbed
impl Default for SendableEmbed
Source§fn default() -> SendableEmbed
fn default() -> SendableEmbed
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendableEmbed
impl<'de> Deserialize<'de> for SendableEmbed
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 SendableEmbed
impl RefUnwindSafe for SendableEmbed
impl Send for SendableEmbed
impl Sync for SendableEmbed
impl Unpin for SendableEmbed
impl UnwindSafe for SendableEmbed
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