pub struct EnvOverride {
pub key: String,
pub path: PathBuf,
}Expand description
App-specific environment path that took precedence during resolution.
Generic XDG_*_HOME and HOME inputs are intentionally not recorded here.
§Examples
use ailloli_ui_app_storage::EnvOverride;
let value = EnvOverride { key: "MY_APP_STATE_DIR".into(), path: "/state".into() };
assert_eq!(value.key, "MY_APP_STATE_DIR");Fields§
§key: StringEnvironment variable name that supplied the path.
path: PathBufNon-empty path value used verbatim.
Trait Implementations§
Source§impl Clone for EnvOverride
impl Clone for EnvOverride
Source§fn clone(&self) -> EnvOverride
fn clone(&self) -> EnvOverride
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 EnvOverride
impl Debug for EnvOverride
Source§impl PartialEq for EnvOverride
impl PartialEq for EnvOverride
impl Eq for EnvOverride
impl StructuralPartialEq for EnvOverride
Auto Trait Implementations§
impl Freeze for EnvOverride
impl RefUnwindSafe for EnvOverride
impl Send for EnvOverride
impl Sync for EnvOverride
impl Unpin for EnvOverride
impl UnwindSafe for EnvOverride
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