#[non_exhaustive]pub struct SubmittedFileUpload {
pub id: Option<u32>,
pub custom_id: CompactString,
pub values: Vec<AttachmentId>,
}Expand description
A submitted file upload: the IDs of the uploaded files,
whose objects are in Resolved::attachments.
discord.js counterpart: APIModalSubmitFileUploadComponent (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<u32>The component’s numeric ID.
custom_id: CompactStringThe component’s custom ID.
values: Vec<AttachmentId>The IDs of the uploaded files.
Trait Implementations§
Source§impl Clone for SubmittedFileUpload
impl Clone for SubmittedFileUpload
Source§impl Debug for SubmittedFileUpload
impl Debug for SubmittedFileUpload
impl Eq for SubmittedFileUpload
Source§impl PartialEq for SubmittedFileUpload
impl PartialEq for SubmittedFileUpload
Source§impl Serialize for SubmittedFileUpload
impl Serialize for SubmittedFileUpload
impl StructuralPartialEq for SubmittedFileUpload
Auto Trait Implementations§
impl Freeze for SubmittedFileUpload
impl RefUnwindSafe for SubmittedFileUpload
impl Send for SubmittedFileUpload
impl Sync for SubmittedFileUpload
impl Unpin for SubmittedFileUpload
impl UnsafeUnpin for SubmittedFileUpload
impl UnwindSafe for SubmittedFileUpload
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