Struct serenity::builder::CreateEmbedAuthor
[−]
[src]
pub struct CreateEmbedAuthor(pub Map<String, Value>);
A builder to create a fake Embed
object's author, for use with the
CreateEmbed::author
method.
Requires that you specify a name
.
Methods
impl CreateEmbedAuthor
[src]
fn icon_url(self, icon_url: &str) -> Self
Set the URL of the author's icon.
fn name(self, name: &str) -> Self
Set the author's name.
fn url(self, url: &str) -> Self
Set the author's URL.
Trait Implementations
impl Clone for CreateEmbedAuthor
[src]
fn clone(&self) -> CreateEmbedAuthor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for CreateEmbedAuthor
[src]
impl Default for CreateEmbedAuthor
[src]
fn default() -> CreateEmbedAuthor
Returns the "default value" for a type. Read more