#[non_exhaustive]pub struct FileContents {
pub files: Vec<PickedFile>,
pub mime_types: Vec<String>,
pub page_position: Option<Point<Points>>,
}Expand description
Files dragged in with their contents (EventPayload::FileContents).
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.files: Vec<PickedFile>The regular files, in the drag’s order: read ones with their bytes,
ones over the limit tooLarge; on drag entry, none are read yet.
mime_types: Vec<String>The MIME type of each offered item, as the platform reports them.
page_position: Option<Point<Points>>Where the files were let go, in the window’s coordinates.
Implementations§
Trait Implementations§
Source§impl Clone for FileContents
impl Clone for FileContents
Source§impl Debug for FileContents
impl Debug for FileContents
Source§impl Default for FileContents
impl Default for FileContents
Source§impl PartialEq for FileContents
impl PartialEq for FileContents
impl StructuralPartialEq for FileContents
Auto Trait Implementations§
impl !RefUnwindSafe for FileContents
impl !UnwindSafe for FileContents
impl Forget for FileContents
impl Freeze for FileContents
impl Move for FileContents
impl Send for FileContents
impl Sync for FileContents
impl Unpin for FileContents
impl UnsafeUnpin for FileContentswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PickedFile>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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