pub struct SendMessageData {
pub content: Option<String>,
pub attachments: Option<Vec<String>>,
pub replies: Option<Vec<Reply>>,
pub embeds: Option<Vec<SendableEmbed>>,
pub masquerade: Option<Masquerade>,
pub interactions: Option<Interactions>,
}Fields§
§content: Option<String>Message content to send
attachments: Option<Vec<String>>Attachments to include in message
replies: Option<Vec<Reply>>Messages to reply to
embeds: Option<Vec<SendableEmbed>>Embeds to include in message
Text embed content contributes to the content length cap
masquerade: Option<Masquerade>Masquerade to apply to this message
interactions: Option<Interactions>Information about how this message should be interacted with
Trait Implementations§
Source§impl Clone for SendMessageData
impl Clone for SendMessageData
Source§fn clone(&self) -> SendMessageData
fn clone(&self) -> SendMessageData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendMessageData
impl Debug for SendMessageData
Source§impl Default for SendMessageData
impl Default for SendMessageData
Source§fn default() -> SendMessageData
fn default() -> SendMessageData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SendMessageData
impl RefUnwindSafe for SendMessageData
impl Send for SendMessageData
impl Sync for SendMessageData
impl Unpin for SendMessageData
impl UnwindSafe for SendMessageData
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