[−][src]Struct webhook::EmbedBuilder
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]
&mut self,
name: &str,
value: &str,
inline: bool
) -> &mut EmbedBuilder
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]
&mut self,
text: &str,
url: Option<String>,
proxy_url: Option<String>
) -> &mut EmbedBuilder
pub fn image(
&mut self,
url: &str,
proxy_url: Option<String>,
height: Option<i32>,
width: Option<i32>
) -> &mut EmbedBuilder
[src]
&mut self,
url: &str,
proxy_url: Option<String>,
height: Option<i32>,
width: Option<i32>
) -> &mut EmbedBuilder
pub fn author(
&mut self,
name: &str,
url: &str,
icon_url: Option<String>,
proxy_icon_url: Option<String>
) -> &mut EmbedBuilder
[src]
&mut self,
name: &str,
url: &str,
icon_url: Option<String>,
proxy_icon_url: Option<String>
) -> &mut EmbedBuilder
pub fn video(
&mut self,
url: &str,
height: Option<i32>,
width: Option<i32>
) -> &mut EmbedBuilder
[src]
&mut self,
url: &str,
height: Option<i32>,
width: Option<i32>
) -> &mut EmbedBuilder
pub fn build(&mut self) -> Embed
[src]
Trait Implementations
impl Debug for EmbedBuilder
[src]
impl Serialize for EmbedBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for EmbedBuilder
impl Send for EmbedBuilder
impl Sync for EmbedBuilder
impl Unpin for EmbedBuilder
impl UnwindSafe for EmbedBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,