pub struct AppPathsOptions {
pub application_name: String,
pub environment_override: Option<String>,
pub create_directories: bool,
pub root_policy: Option<AppRootPolicy>,
}Expand description
Options for resolving AppPaths.
Fields§
§application_name: StringApplication name (validated).
environment_override: Option<String>Optional environment variable name used as root override when set.
Equivalent to AppRootPolicy::EnvironmentOverride when Some.
create_directories: boolWhen true, create the resolved directories.
root_policy: Option<AppRootPolicy>Explicit root policy. When set, takes precedence over environment_override
alone for the policy shape; if both are present, root_policy wins.
Implementations§
Trait Implementations§
Source§impl Clone for AppPathsOptions
impl Clone for AppPathsOptions
Source§fn clone(&self) -> AppPathsOptions
fn clone(&self) -> AppPathsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AppPathsOptions
impl Debug for AppPathsOptions
impl Eq for AppPathsOptions
Source§impl PartialEq for AppPathsOptions
impl PartialEq for AppPathsOptions
impl StructuralPartialEq for AppPathsOptions
Auto Trait Implementations§
impl Freeze for AppPathsOptions
impl RefUnwindSafe for AppPathsOptions
impl Send for AppPathsOptions
impl Sync for AppPathsOptions
impl Unpin for AppPathsOptions
impl UnsafeUnpin for AppPathsOptions
impl UnwindSafe for AppPathsOptions
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