pub struct FileDialogStorage {
pub pinned_folders: Vec<DirectoryEntry>,
pub show_hidden: bool,
pub show_system_files: bool,
pub last_visited_dir: Option<PathBuf>,
pub last_picked_dir: Option<PathBuf>,
}
Expand description
Contains data of the FileDialog
that should be stored persistently.
Fields§
§pinned_folders: Vec<DirectoryEntry>
The folders the user pinned to the left sidebar.
If hidden files and folders should be listed inside the directory view.
show_system_files: bool
If system files should be listed inside the directory view.
last_visited_dir: Option<PathBuf>
The last directory the user visited.
last_picked_dir: Option<PathBuf>
The last directory from which the user picked an item.
Trait Implementations§
Source§impl Clone for FileDialogStorage
impl Clone for FileDialogStorage
Source§fn clone(&self) -> FileDialogStorage
fn clone(&self) -> FileDialogStorage
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 FileDialogStorage
impl Debug for FileDialogStorage
Source§impl Default for FileDialogStorage
impl Default for FileDialogStorage
Source§impl<'de> Deserialize<'de> for FileDialogStorage
impl<'de> Deserialize<'de> for FileDialogStorage
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
Auto Trait Implementations§
impl Freeze for FileDialogStorage
impl RefUnwindSafe for FileDialogStorage
impl Send for FileDialogStorage
impl Sync for FileDialogStorage
impl Unpin for FileDialogStorage
impl UnwindSafe for FileDialogStorage
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