pub struct Message {
pub content: Option<String>,
pub username: Option<String>,
pub avatar_url: Option<String>,
pub tts: bool,
pub embeds: Vec<Embed>,
pub allow_mentions: Option<AllowedMentions>,
}Fields§
§content: Option<String>§username: Option<String>§avatar_url: Option<String>§tts: bool§embeds: Vec<Embed>§allow_mentions: Option<AllowedMentions>Implementations§
Source§impl Message
impl Message
pub fn new() -> Self
pub fn content(&mut self, content: &str) -> &mut Self
pub fn username(&mut self, username: &str) -> &mut Self
pub fn avatar_url(&mut self, avatar_url: &str) -> &mut Self
pub fn tts(&mut self, tts: bool) -> &mut Self
pub fn embed<Func>(&mut self, func: Func) -> &mut Self
pub fn allow_mentions( &mut self, parse: Option<Vec<AllowedMention>>, roles: Option<Vec<String>>, users: Option<Vec<String>>, replied_user: bool, ) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more