pub struct SerenityEmbedField {
pub name: String,
pub value: String,
pub inline: bool,
}Expand description
Field structures used in SerenityEmbed. These structures can be used as Vec (arrays) in SerenityEmbed and are internally converted to be handled by serenity::model::channel::Embed.
Fields§
§name: StringThe name of the field.
value: StringThe value of the field.
inline: boolWhether the field is displayed inline. (default: false)
Implementations§
Trait Implementations§
Source§impl Clone for SerenityEmbedField
impl Clone for SerenityEmbedField
Source§fn clone(&self) -> SerenityEmbedField
fn clone(&self) -> SerenityEmbedField
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<'de> Deserialize<'de> for SerenityEmbedField
impl<'de> Deserialize<'de> for SerenityEmbedField
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 SerenityEmbedField
impl RefUnwindSafe for SerenityEmbedField
impl Send for SerenityEmbedField
impl Sync for SerenityEmbedField
impl Unpin for SerenityEmbedField
impl UnwindSafe for SerenityEmbedField
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