Struct serenity::model::channel::EmbedField [−][src]
Expand description
A field object in an embed.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.inline: bool
Indicator of whether the field should display as inline.
name: String
The name of the field.
The maximum length of this field is 512 unicode codepoints.
value: String
The value of the field.
The maxiumum length of this field is 1024 unicode codepoints.
Implementations
Creates a new embed field.
Note: Refer to the Self::name
and Self::value
documentation for maximum
lengths.
Trait Implementations
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 RefUnwindSafe for EmbedField
impl Send for EmbedField
impl Sync for EmbedField
impl Unpin for EmbedField
impl UnwindSafe for EmbedField
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more