Struct egui::DroppedFile
source · pub struct DroppedFile {
pub path: Option<PathBuf>,
pub name: 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.
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<DroppedFile> for DroppedFile
impl PartialEq<DroppedFile> 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 ==
.