pub struct GenericEmbedField {
pub name: String,
pub value: String,
pub inline: bool,
}Expand description
A key-value field displayed within an embed.
Fields are used to display structured information in a clean format.
Multiple fields can be placed side-by-side using the inline flag.
Fields§
§name: StringThe field label displayed in bold.
value: StringThe field content displayed after the label.
inline: boolIf true, this field can be displayed next to other inline fields. If false, the field takes the full width.
Trait Implementations§
Source§impl Clone for GenericEmbedField
impl Clone for GenericEmbedField
Source§impl Debug for GenericEmbedField
impl Debug for GenericEmbedField
Source§impl<'de> Deserialize<'de> for GenericEmbedField
impl<'de> Deserialize<'de> for GenericEmbedField
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 GenericEmbedField
impl RefUnwindSafe for GenericEmbedField
impl Send for GenericEmbedField
impl Sync for GenericEmbedField
impl Unpin for GenericEmbedField
impl UnsafeUnpin for GenericEmbedField
impl UnwindSafe for GenericEmbedField
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