provider
Module: provider
Section titled “Module: provider”Contents
Section titled “Contents”Structs
SystemDirs- Production [DirProvider] backed by the real environment.
Traits
DirProvider- Supplies the candidate config directories, one method per tier.
firma_config::provider::DirProvider
Section titled “firma_config::provider::DirProvider”Trait
Supplies the candidate config directories, one method per tier.
Methods:
env_config_dir:$FIRMA_CONFIG_DIRif set.xdg_config_home:$XDG_CONFIG_HOMEif set (all platforms honor it).dot_config_dir: The home-conventionfirmaconfig dir, platform-shaped andplatform_config_dir: Platform default fromdirs::config_dir()(macOS Library,system_config_dirs: System-wide config dirs, highest priority first.cwd: Current working directory (legacy back-compat tier).
firma_config::provider::SystemDirs
Section titled “firma_config::provider::SystemDirs”Struct
Production [DirProvider] backed by the real environment.
Unit Struct
Traits: Copy
Trait Implementations:
- Default
fn default() -> SystemDirs
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- DirProvider
fn env_config_dir(self: &Self) -> Option<PathBuf>fn xdg_config_home(self: &Self) -> Option<PathBuf>fn dot_config_dir(self: &Self) -> Option<PathBuf>fn platform_config_dir(self: &Self) -> Option<PathBuf>fn system_config_dirs(self: &Self) -> Vec<PathBuf>fn cwd(self: &Self) -> Option<PathBuf>
- Clone
fn clone(self: &Self) -> SystemDirs