pub struct PlatformDirectories {
pub data: PathBuf,
pub config: PathBuf,
pub cache: PathBuf,
pub documents: Option<PathBuf>,
pub temporary: PathBuf,
pub shared: Option<PathBuf>,
}Expand description
Platform directory roots for application-owned files.
Fields§
§data: PathBufFolder for the persistent data of the app.
config: PathBufFolder for settings files.
cache: PathBufFolder for files that the app can recreate. The system may delete them.
documents: Option<PathBuf>Folder for documents that the person can see. None where the platform has no such folder.
temporary: PathBufFolder for short-lived files.
Folder that the person and other apps can reach, such as the external files folder on
Android. None where the platform has no such folder.
Trait Implementations§
Source§impl Clone for PlatformDirectories
impl Clone for PlatformDirectories
Source§impl Debug for PlatformDirectories
impl Debug for PlatformDirectories
impl Eq for PlatformDirectories
Source§impl PartialEq for PlatformDirectories
impl PartialEq for PlatformDirectories
impl StructuralPartialEq for PlatformDirectories
Auto Trait Implementations§
impl Freeze for PlatformDirectories
impl RefUnwindSafe for PlatformDirectories
impl Send for PlatformDirectories
impl Sync for PlatformDirectories
impl Unpin for PlatformDirectories
impl UnsafeUnpin for PlatformDirectories
impl UnwindSafe for PlatformDirectories
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