pub struct MessageSendSchema {
pub attachments: Option<Vec<PartialDiscordFileAttachment>>,
/* private fields */
}Fields§
§attachments: Option<Vec<PartialDiscordFileAttachment>>Implementations§
Source§impl MessageSendSchema
impl MessageSendSchema
pub fn new( message_type: Option<i32>, content: Option<String>, nonce: Option<String>, tts: Option<bool>, embeds: Option<Vec<Embed>>, allowed_mentions: Option<AllowedMention>, message_reference: Option<MessageReference>, components: Option<Vec<Component>>, sticker_ids: Option<Vec<String>>, attachments: Option<Vec<PartialDiscordFileAttachment>>, ) -> MessageSendSchema
Trait Implementations§
Source§impl Debug for MessageSendSchema
impl Debug for MessageSendSchema
Source§impl<'de> Deserialize<'de> for MessageSendSchema
impl<'de> Deserialize<'de> for MessageSendSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageSendSchema
impl RefUnwindSafe for MessageSendSchema
impl Send for MessageSendSchema
impl Sync for MessageSendSchema
impl Unpin for MessageSendSchema
impl UnwindSafe for MessageSendSchema
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