[][src]Struct webhook::EmbedBuilder

pub struct EmbedBuilder { /* fields omitted */ }

Implementations

impl EmbedBuilder[src]

pub fn new() -> Self[src]

pub fn title(&mut self, title: &str) -> &mut EmbedBuilder[src]

pub fn type_(&mut self, type_: &str) -> &mut EmbedBuilder[src]

pub fn description(&mut self, description: &str) -> &mut EmbedBuilder[src]

pub fn url(&mut self, url: &str) -> &mut EmbedBuilder[src]

pub fn color(&mut self, color: i32) -> &mut EmbedBuilder[src]

pub fn field(
    &mut self,
    name: &str,
    value: &str,
    inline: bool
) -> &mut EmbedBuilder
[src]

pub fn timestamp(&mut self, timestamp: &str) -> &mut EmbedBuilder[src]

pub fn footer(
    &mut self,
    text: &str,
    url: Option<String>,
    proxy_url: Option<String>
) -> &mut EmbedBuilder
[src]

pub fn image(
    &mut self,
    url: &str,
    proxy_url: Option<String>,
    height: Option<i32>,
    width: Option<i32>
) -> &mut EmbedBuilder
[src]

pub fn author(
    &mut self,
    name: &str,
    url: &str,
    icon_url: Option<String>,
    proxy_icon_url: Option<String>
) -> &mut EmbedBuilder
[src]

pub fn video(
    &mut self,
    url: &str,
    height: Option<i32>,
    width: Option<i32>
) -> &mut EmbedBuilder
[src]

pub fn build(&mut self) -> Embed[src]

Trait Implementations

impl Debug for EmbedBuilder[src]

impl Serialize for EmbedBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.