pub struct CreateMessageData {
pub content: String,
pub tts: bool,
pub embeds: Vec<Embed>,
pub allowed_mentions: Option<AllowedMentions>,
pub flags: Option<u32>,
pub components: Vec<Component>,
pub attachments: Vec<AttachmentPayload>,
}Expand description
Data for creating a message.
Fields§
§content: StringThe content of the message.
tts: boolWhether the message is a TTS message.
embeds: Vec<Embed>The embeds of the message.
allowed_mentions: Option<AllowedMentions>The allowed mentions in the message.
flags: Option<u32>The flags of the message.
components: Vec<Component>The components of the message.
attachments: Vec<AttachmentPayload>The attachments of the message.
Implementations§
Trait Implementations§
Source§impl Clone for CreateMessageData
impl Clone for CreateMessageData
Source§fn clone(&self) -> CreateMessageData
fn clone(&self) -> CreateMessageData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeJson for CreateMessageData
impl DeJson for CreateMessageData
Source§impl Debug for CreateMessageData
impl Debug for CreateMessageData
Source§impl Default for CreateMessageData
impl Default for CreateMessageData
Source§fn default() -> CreateMessageData
fn default() -> CreateMessageData
Returns the “default value” for a type. Read more
Source§impl From<&String> for CreateMessageData
impl From<&String> for CreateMessageData
Source§impl From<&str> for CreateMessageData
impl From<&str> for CreateMessageData
Source§impl From<AttachmentPayload> for CreateMessageData
impl From<AttachmentPayload> for CreateMessageData
Source§impl From<Embed> for CreateMessageData
impl From<Embed> for CreateMessageData
Source§impl From<String> for CreateMessageData
impl From<String> for CreateMessageData
Source§impl From<Vec<AttachmentPayload>> for CreateMessageData
impl From<Vec<AttachmentPayload>> for CreateMessageData
Source§impl SerJson for CreateMessageData
impl SerJson for CreateMessageData
Auto Trait Implementations§
impl Freeze for CreateMessageData
impl RefUnwindSafe for CreateMessageData
impl Send for CreateMessageData
impl Sync for CreateMessageData
impl Unpin for CreateMessageData
impl UnsafeUnpin for CreateMessageData
impl UnwindSafe for CreateMessageData
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