pub struct Dir {
pub prefix: DirPrefix,
pub salt: String,
pub path: String,
}
Fields§
§prefix: DirPrefix
§salt: String
§path: String
Implementations§
Source§impl Dir
impl Dir
Sourcepub const XDG_ENV: &'static str = "XDG_DATA_HOME"
pub const XDG_ENV: &'static str = "XDG_DATA_HOME"
Environment variable name which used xdg
prefix
Sourcepub const XDG_FALLBACK_PATH: &'static str = "~/.local/share"
pub const XDG_FALLBACK_PATH: &'static str = "~/.local/share"
Fallback path when XDG_ENV
is not exists
const DEFAULT_PREFIX_BEHAVIOR: PrefixBehavior = PrefixBehavior::Cwd
fn get_prefix_behavior(prefix: DirPrefix) -> PrefixBehavior
Trait Implementations§
Source§impl From<Dir> for ConfigPart
impl From<Dir> for ConfigPart
impl Eq for Dir
impl StructuralPartialEq for Dir
Auto Trait Implementations§
impl Freeze for Dir
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
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