pub struct AppPaths {
pub application_name: String,
pub root_dir: PathBuf,
pub config_dir: PathBuf,
pub data_dir: PathBuf,
pub cache_dir: PathBuf,
pub state_dir: Option<PathBuf>,
pub temp_dir: PathBuf,
}Expand description
Application-level platform roots for a named tool.
Callers may join product-specific subdirectories under Self::root_dir.
Those subdirectory names are not defined by this crate.
Fields§
§application_name: StringValidated application name.
root_dir: PathBufPrimary application root directory.
config_dir: PathBufConfiguration directory for the application.
data_dir: PathBufData directory for the application.
cache_dir: PathBufCache directory for the application.
state_dir: Option<PathBuf>State directory when available.
temp_dir: PathBufTemporary directory (system temp unless rooted under an explicit override).
Trait Implementations§
impl Eq for AppPaths
impl StructuralPartialEq for AppPaths
Auto Trait Implementations§
impl Freeze for AppPaths
impl RefUnwindSafe for AppPaths
impl Send for AppPaths
impl Sync for AppPaths
impl Unpin for AppPaths
impl UnsafeUnpin for AppPaths
impl UnwindSafe for AppPaths
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