yodel/options

Configuration options for loading and parsing config files.

Note: These types are re-exported from the main yodel module. Use the builder functions in yodel to construct options rather than importing this module directly.

Types

The format of the configuration file.

pub type Format {
  Auto
  Json
  Toml
  Yaml
}

Constructors

  • Auto

    Automatically detect format

  • Json

    Parse as JSON

  • Toml

    Parse as TOML

  • Yaml

    Parse as YAML

Configuration options for loading config files.

Create options using yodel.default_options() and configure using builder functions like yodel.with_format() and yodel.with_resolve_mode().

pub opaque type Options

The resolve mode for environment variable placeholders.

pub type ResolveMode {
  Strict
  Lenient
}

Constructors

  • Strict

    Fail if any placeholder cannot be resolved

  • Lenient

    Preserve unresolved placeholders in the output

Search Document