pub struct FileInput {
pub save: bool,
pub name: String,
pub extensions: Vec<String>,
pub folder: bool,
pub title: String,
pub purpose: String,
pub filter_name: String,
}Expand description
What a path field’s Browse chooses.
Fields§
§save: boolA file to write (the chooser asks before replacing one), else one to read.
name: StringThe name proposed when saving.
extensions: Vec<String>The extensions offered, without the dot (none: any file).
folder: boolA folder, not a file (Field::open_folder).
title: StringThe chooser’s title, a task (“Choose an enrolment file”); empty: the field’s title.
purpose: StringThe key the chooser’s last folder is remembered under; empty:
egui_pop.admin.<draft key>.
filter_name: StringWhat the chooser calls the extensions’ filter (“Enrolment files”); empty: the extensions joined.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInput
impl<'de> Deserialize<'de> for FileInput
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
impl StructuralPartialEq for FileInput
Auto Trait Implementations§
impl Freeze for FileInput
impl RefUnwindSafe for FileInput
impl Send for FileInput
impl Sync for FileInput
impl Unpin for FileInput
impl UnsafeUnpin for FileInput
impl UnwindSafe for FileInput
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