pub struct CreateMessage(pub HashMap<&'static str, Value>);Tuple Fields§
§0: HashMap<&'static str, Value>Implementations§
Source§impl CreateMessage
impl CreateMessage
Sourcepub fn content<D: ToString>(&mut self, content: D) -> &mut Self
pub fn content<D: ToString>(&mut self, content: D) -> &mut Self
Set the content of the message.
Note: Message contents must be under 2000 unicode code points.
pub fn masquerade(&mut self, name: &str) -> &mut Self
pub fn set_masquerade<F>(&mut self, f: F) -> &mut Self
Sourcepub fn create_embed<T>(&mut self, f: T) -> &mut Self
pub fn create_embed<T>(&mut self, f: T) -> &mut Self
Create an embed in the message. And push it to the embeds array.
Trait Implementations§
Source§impl Debug for CreateMessage
impl Debug for CreateMessage
Source§impl Default for CreateMessage
impl Default for CreateMessage
Source§fn default() -> CreateMessage
fn default() -> CreateMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateMessage
impl RefUnwindSafe for CreateMessage
impl Send for CreateMessage
impl Sync for CreateMessage
impl Unpin for CreateMessage
impl UnwindSafe for CreateMessage
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