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