pub struct DroppedFile {
pub name: String,
pub path: Option<PathBuf>,
}Expand description
A single dropped file descriptor.
- On desktop:
pathisSome(PathBuf). - On web:
pathis usuallyNone(browser doesn’t expose local paths).
Fields§
§name: String§path: Option<PathBuf>Trait Implementations§
Source§impl Clone for DroppedFile
impl Clone for DroppedFile
Source§fn clone(&self) -> DroppedFile
fn clone(&self) -> DroppedFile
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 moreAuto Trait Implementations§
impl Freeze for DroppedFile
impl RefUnwindSafe for DroppedFile
impl Send for DroppedFile
impl Sync for DroppedFile
impl Unpin for DroppedFile
impl UnwindSafe for DroppedFile
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