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
Auto Trait Implementations§
impl Freeze for DroppedFile
impl RefUnwindSafe for DroppedFile
impl Send for DroppedFile
impl Sync for DroppedFile
impl Unpin for DroppedFile
impl UnsafeUnpin 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