Struct commodore::AttachmentBuilder
[−]
[src]
pub struct AttachmentBuilder { /* fields omitted */ }
Methods
impl AttachmentBuilder
[src]
fn new() -> AttachmentBuilder
fn text<S>(&mut self, txt: S) -> &mut AttachmentBuilder where S: Into<String>
fn color<S>(&mut self, color: S) -> &mut AttachmentBuilder where S: Into<String>
fn fallback<S>(&mut self, fallback: S) -> &mut AttachmentBuilder where S: Into<String>
fn pretext<S>(&mut self, pretext: S) -> &mut AttachmentBuilder where S: Into<String>
fn title<S>(&mut self, title: S) -> &mut AttachmentBuilder where S: Into<String>
fn image_url<S>(&mut self, image_url: S) -> &mut AttachmentBuilder where S: Into<String>
fn thumb_url<S>(&mut self, thumb_url: S) -> &mut AttachmentBuilder where S: Into<String>
fn field(&mut self, f: Field) -> &mut AttachmentBuilder
fn ts(&mut self, s: usize) -> &mut AttachmentBuilder
fn build(&self) -> Attachment
Trait Implementations
impl Default for AttachmentBuilder
[src]
fn default() -> AttachmentBuilder
Returns the "default value" for a type. Read more