Struct egui::DroppedFile
source · pub struct DroppedFile {
pub path: Option<PathBuf>,
pub name: String,
pub mime: String,
pub last_modified: Option<SystemTime>,
pub bytes: Option<Arc<[u8]>>,
}
Expand description
A file dropped into egui.
Fields§
§path: Option<PathBuf>
Set by the egui-winit
backend.
name: String
Name of the file. Set by the eframe
web backend.
mime: String
With the eframe
web backend, this is set to the mime-type of the file (if available).
last_modified: Option<SystemTime>
Set by the eframe
web backend.
bytes: Option<Arc<[u8]>>
Set by the eframe
web backend.
Trait Implementations§
source§impl Clone for DroppedFile
impl Clone for DroppedFile
source§fn clone(&self) -> DroppedFile
fn clone(&self) -> DroppedFile
Returns a copy 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 DroppedFile
impl Debug for DroppedFile
source§impl Default for DroppedFile
impl Default for DroppedFile
source§fn default() -> DroppedFile
fn default() -> DroppedFile
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DroppedFile
impl<'de> Deserialize<'de> for DroppedFile
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DroppedFile
impl PartialEq for DroppedFile
source§fn eq(&self, other: &DroppedFile) -> bool
fn eq(&self, other: &DroppedFile) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DroppedFile
impl Serialize for DroppedFile
impl Eq for DroppedFile
impl StructuralPartialEq 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 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