Struct serenity::builder::CreateEmbedField
[−]
[src]
pub struct CreateEmbedField(pub Map<String, Value>);
A builder to create a fake Embed object's field, for use with the
CreateEmbed::field method.
This does not require any field be set. inline is set to true by
default.
Methods
impl CreateEmbedField[src]
fn inline(self, inline: bool) -> Self[src]
Set whether the field is inlined. Set to true by default.
fn name<D: Display>(self, name: D) -> Self[src]
Set the field's name. It can't be longer than 256 characters.
fn value<D: Display>(self, value: D) -> Self[src]
Set the field's value. It can't be longer than 1024 characters.
Trait Implementations
impl Clone for CreateEmbedField[src]
fn clone(&self) -> CreateEmbedField[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for CreateEmbedField[src]
impl Default for CreateEmbedField[src]
fn default() -> CreateEmbedField[src]
Creates a builder with default values, setting the value of inline to
true.