pub struct CreateMessageBody {
pub content: Option<String>,
pub embeds: Vec<MessageEmbed>,
pub attachments: Vec<AttachmentRequest>,
pub message_reference: Option<MessageReference>,
pub allowed_mentions: Option<AllowedMentions>,
pub flags: MessageFlags,
pub nonce: Nonce,
pub favorite_meme_id: Option<String>,
pub sticker_ids: Option<Vec<Id<StickerMarker>>>,
pub tts: bool,
}Expand description
Fields§
§content: Option<String>§embeds: Vec<MessageEmbed>§attachments: Vec<AttachmentRequest>§message_reference: Option<MessageReference>§allowed_mentions: Option<AllowedMentions>§flags: MessageFlags§nonce: Nonce§favorite_meme_id: Option<String>§sticker_ids: Option<Vec<Id<StickerMarker>>>§tts: boolImplementations§
Source§impl CreateMessageBody
impl CreateMessageBody
Sourcepub fn builder() -> CreateMessageBodyBuilder
pub fn builder() -> CreateMessageBodyBuilder
Create an instance of CreateMessageBody using the builder syntax
Trait Implementations§
Source§impl Clone for CreateMessageBody
impl Clone for CreateMessageBody
Source§fn clone(&self) -> CreateMessageBody
fn clone(&self) -> CreateMessageBody
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 CreateMessageBody
impl Debug for CreateMessageBody
Auto Trait Implementations§
impl Freeze for CreateMessageBody
impl RefUnwindSafe for CreateMessageBody
impl Send for CreateMessageBody
impl Sync for CreateMessageBody
impl Unpin for CreateMessageBody
impl UnsafeUnpin for CreateMessageBody
impl UnwindSafe for CreateMessageBody
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