pub struct ModalInteractionFileUpload {
pub custom_id: String,
pub id: i32,
pub values: Vec<Id<AttachmentMarker>>,
}Expand description
User filled in FileUpload.
Fields§
§custom_id: StringUser defined identifier for the component.
id: i32Unique identifier for the component.
values: Vec<Id<AttachmentMarker>>IDs of the uploaded files found in ModalInteractionData::resolved.
Trait Implementations§
Source§impl Clone for ModalInteractionFileUpload
impl Clone for ModalInteractionFileUpload
Source§impl Debug for ModalInteractionFileUpload
impl Debug for ModalInteractionFileUpload
impl Eq for ModalInteractionFileUpload
Source§impl From<ModalInteractionFileUpload> for ModalInteractionComponent
impl From<ModalInteractionFileUpload> for ModalInteractionComponent
Source§fn from(file_upload: ModalInteractionFileUpload) -> Self
fn from(file_upload: ModalInteractionFileUpload) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ModalInteractionFileUpload
Source§impl TryFrom<ModalInteractionComponent> for ModalInteractionFileUpload
impl TryFrom<ModalInteractionComponent> for ModalInteractionFileUpload
Source§type Error = ModalInteractionComponent
type Error = ModalInteractionComponent
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ModalInteractionFileUpload
impl Freeze for ModalInteractionFileUploadwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Id<AttachmentMarker>>: Freeze,
impl Move for ModalInteractionFileUpload
impl RefUnwindSafe for ModalInteractionFileUpload
impl Send for ModalInteractionFileUpload
impl Sync for ModalInteractionFileUpload
impl Unpin for ModalInteractionFileUpload
impl UnsafeUnpin for ModalInteractionFileUploadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Id<AttachmentMarker>>: UnsafeUnpin,
impl UnwindSafe for ModalInteractionFileUpload
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