pub struct Send {
pub content: String,
pub embeds: Vec<Embed>,
pub reply_to: Option<MessageId>,
pub mentions: Option<Mentions>,
pub attachments: Vec<AttachmentId>,
pub components: Vec<Component>,
pub flags: Option<u32>,
}Expand description
message.send (§8.5).
Fields§
§content: String≤ 4 000 scalars; at least 1 unless the message has an attachment or an embed.
embeds: Vec<Embed>Up to 10 rich embeds (EMBED_LINKS). Every picture an embed shows is one of
attachments.
reply_to: Option<MessageId>A message in the same channel.
mentions: Option<Mentions>Who to notify.
attachments: Vec<AttachmentId>Up to 10 distinct attachments this member uploaded to this channel and the host
stored (attachment.upload), not yet on a message.
SPEC: written without ? in §8.5 but absent from the §7.1 example body; it defaults
to empty.
components: Vec<Component>Components; bot members only (§8.14).
flags: Option<u32>Message flags (§8.14); EPHEMERAL only in interaction replies.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Send
impl<'de> Deserialize<'de> for Send
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
impl Eq for Send
impl StructuralPartialEq for Send
Auto Trait Implementations§
impl Freeze for Send
impl RefUnwindSafe for Send
impl Send for Send
impl Sync for Send
impl Unpin for Send
impl UnsafeUnpin for Send
impl UnwindSafe for Send
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