Struct serenity::utils::builder::CreateEmbedField
[−]
[src]
pub struct CreateEmbedField(pub ObjectBuilder);
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
Set whether the field is inlined. Set to true by default.
fn name(self, name: &str) -> Self
Set the field's name. It can't be longer than 256 characters.
fn value(self, value: &str) -> Self
Set the field's value. It can't be longer than 1024 characters.
Trait Implementations
impl Default for CreateEmbedField
[src]
fn default() -> CreateEmbedField
Creates a builder with default values, setting the value of inline
to
true
.