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§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