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§fn clone(&self) -> ModalInteractionFileUpload
fn clone(&self) -> ModalInteractionFileUpload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModalInteractionFileUpload
impl Debug 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.
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.
impl Eq for ModalInteractionFileUpload
impl StructuralPartialEq for ModalInteractionFileUpload
Auto Trait Implementations§
impl Freeze for ModalInteractionFileUpload
impl RefUnwindSafe for ModalInteractionFileUpload
impl Send for ModalInteractionFileUpload
impl Sync for ModalInteractionFileUpload
impl Unpin for ModalInteractionFileUpload
impl UnsafeUnpin for ModalInteractionFileUpload
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