Skip to content

provider

Structs

  • SystemDirs - Production [DirProvider] backed by the real environment.

Traits

  • DirProvider - Supplies the candidate config directories, one method per tier.

Trait

Supplies the candidate config directories, one method per tier.

Methods:

  • env_config_dir: $FIRMA_CONFIG_DIR if set.
  • xdg_config_home: $XDG_CONFIG_HOME if set (all platforms honor it).
  • dot_config_dir: The home-convention firma config dir, platform-shaped and
  • platform_config_dir: Platform default from dirs::config_dir() (macOS Library,
  • system_config_dirs: System-wide config dirs, highest priority first.
  • cwd: Current working directory (legacy back-compat tier).

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