[][src]Struct spectacles_model::message::EmbedField

pub struct EmbedField {
    pub name: String,
    pub value: String,
    pub inline: Option<bool>,
}

Represents an Embed Field object.

Fields

name: String

The name of the field.

value: String

The value of the field.

inline: Option<bool>

Whether or not this field should display as inline.

Methods

impl EmbedField[src]

pub fn set_name(self, name: impl Into<String>) -> Self[src]

Sets the name of this field.

pub fn set_value(self, val: impl Into<String>) -> Self[src]

Trait Implementations

impl Default for EmbedField[src]

impl Clone for EmbedField[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EmbedField[src]

impl Serialize for EmbedField[src]

impl<'de> Deserialize<'de> for EmbedField[src]

Auto Trait Implementations

impl Send for EmbedField

impl Sync for EmbedField

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]