pub struct EditMessage<'a> {
pub content: Option<&'a str>,
pub embeds: Option<&'a [Embed]>,
pub flags: Option<MessageFlags>,
pub allowed_mentions: Option<&'a AllowedMentions>,
pub components: Option<&'a [Component]>,
pub attachments: Option<&'a [PartialAttachment]>,
pub files: &'a [File],
}Available on crate feature
rest only.Expand description
Body of the edit Endpoints. Absent fields are left unchanged.
Fields§
§content: Option<&'a str>New text, up to 2000 characters
embeds: Option<&'a [Embed]>New embeds, up to 10
flags: Option<MessageFlags>New flags (only SUPPRESS_EMBEDS and IS_COMPONENTS_V2 can change)
allowed_mentions: Option<&'a AllowedMentions>Who may be pinged
components: Option<&'a [Component]>New components
attachments: Option<&'a [PartialAttachment]>attachments to keep plus metadata for files; generated from files when absent
files: &'a [File]Files to upload, sent as multipart
Trait Implementations§
Source§impl<'a> Clone for EditMessage<'a>
impl<'a> Clone for EditMessage<'a>
impl<'a> Copy for EditMessage<'a>
Source§impl<'a> Debug for EditMessage<'a>
impl<'a> Debug for EditMessage<'a>
Source§impl<'a> Default for EditMessage<'a>
impl<'a> Default for EditMessage<'a>
Source§impl<'a> From<&'a MessageCallbackData> for EditMessage<'a>
impl<'a> From<&'a MessageCallbackData> for EditMessage<'a>
Source§fn from(data: &'a MessageCallbackData) -> Self
fn from(data: &'a MessageCallbackData) -> Self
Converts to this type from the input type.
Source§impl<'a> Serialize for EditMessage<'a>
impl<'a> Serialize for EditMessage<'a>
Source§impl<'a> TryFrom<&'a View> for EditMessage<'a>
impl<'a> TryFrom<&'a View> for EditMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for EditMessage<'a>
impl<'a> RefUnwindSafe for EditMessage<'a>
impl<'a> Send for EditMessage<'a>
impl<'a> Sync for EditMessage<'a>
impl<'a> Unpin for EditMessage<'a>
impl<'a> UnsafeUnpin for EditMessage<'a>
impl<'a> UnwindSafe for EditMessage<'a>
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