Struct rocketchat_hooks::Message
[−]
[src]
pub struct Message { pub username: Option<String>, pub icon_emoji: Option<String>, pub text: Option<String>, pub attachments: Option<Vec<Attachment>>, }
Fields
username: Option<String>
icon_emoji: Option<String>
text: Option<String>
attachments: Option<Vec<Attachment>>
Methods
impl Message
[src]
fn new() -> Message
[src]
fn with_username(self, username: String) -> Message
[src]
fn with_icon_emoji(self, icon_emoji: String) -> Message
[src]
fn with_text(self, text: String) -> Message
[src]
fn with_attachments(self, attachments: Vec<Attachment>) -> Message
[src]
fn add_attachment(&mut self, attachment: Attachment)
[src]
Trait Implementations
impl Debug for Message
[src]
impl Clone for Message
[src]
fn clone(&self) -> Message
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more