Expand description
Configuration model and precedence resolution.
Parses a TOML string and merges in environment variables and CLI flag overrides supplied by the caller. Performs no disk or environment IO.
[shape] holds the parsed input types and their validation, [resolve]
layers the precedence tiers into EffectiveSettings, and [effective]
is the resolved output. label_to_env is the shared env-prefix rule both
the validator and the resolver use.
Structs§
- Account
Config - Configuration for a single named account.
- Areas
Config - Per-area mode selection for an account.
- Config
- Top-level configuration parsed from a TOML file.
- Defaults
- Global default settings applied when no account or source override applies.
- Effective
Settings - Resolved effective settings for one account/source combination.
- Flag
Overrides - CLI flag overrides passed to [
Config::resolve].Nonemeans the flag was not provided. - Settings
- The overridable settings block, shared verbatim by every precedence tier.
- Source
Config - Per-source overridable settings within an account.
Enums§
- Area
Mode - How a single area treats deletion, including the library-only
offvalue.
Functions§
- animated_
covers_ flag_ overridden - Whether an explicit
--animated-coversrequest was silently overridden by avideo_cover_retentionthat keeps no animated WebP cover. - label_
to_ env - Convert an account label to its environment variable prefix, mirroring the
per-account keys the resolver reads:
my-libbecomesMY_LIBfor lookups likeSUNO_MY_LIB_TOKEN.