pub struct MessageCreatePayload {
pub content: Option<String>,
pub tts: Option<bool>,
pub embeds: Option<Vec<Embed>>,
pub flags: Option<u64>,
pub message_reference: Option<MessageReference>,
pub referenced_message_id: Option<Snowflake>,
pub attachments: Option<Vec<AttachmentMetadata>>,
}Expand description
Payload for sending/editing messages. All fields optional; only set what you need.
Fields§
§content: Option<String>§tts: Option<bool>§embeds: Option<Vec<Embed>>§flags: Option<u64>§message_reference: Option<MessageReference>§referenced_message_id: Option<Snowflake>§attachments: Option<Vec<AttachmentMetadata>>Required when uploading files. Populated automatically by
[Http::send_message_with_files]; you don’t need to set this manually.
Trait Implementations§
Source§impl Clone for MessageCreatePayload
impl Clone for MessageCreatePayload
Source§fn clone(&self) -> MessageCreatePayload
fn clone(&self) -> MessageCreatePayload
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 MessageCreatePayload
impl Debug for MessageCreatePayload
Source§impl Default for MessageCreatePayload
impl Default for MessageCreatePayload
Source§fn default() -> MessageCreatePayload
fn default() -> MessageCreatePayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageCreatePayload
impl RefUnwindSafe for MessageCreatePayload
impl Send for MessageCreatePayload
impl Sync for MessageCreatePayload
impl Unpin for MessageCreatePayload
impl UnsafeUnpin for MessageCreatePayload
impl UnwindSafe for MessageCreatePayload
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