egui/data/input/hovered_file.rs
1/// A file about to be dropped into egui.
2#[derive(Clone, Debug, Default, PartialEq, Eq)]
3#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
4pub struct HoveredFile {
5 /// Set by the `egui-winit` backend.
6 pub path: Option<std::path::PathBuf>,
7
8 /// With the `eframe` web backend, this is set to the mime-type of the file (if available).
9 pub mime: String,
10}