Skip to main content

Module config

Module config 

Source
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§

AccountConfig
Configuration for a single named account.
AreasConfig
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.
EffectiveSettings
Resolved effective settings for one account/source combination.
FlagOverrides
CLI flag overrides passed to [Config::resolve]. None means the flag was not provided.
Settings
The overridable settings block, shared verbatim by every precedence tier.
SourceConfig
Per-source overridable settings within an account.

Enums§

AreaMode
How a single area treats deletion, including the library-only off value.

Functions§

animated_covers_flag_overridden
Whether an explicit --animated-covers request was silently overridden by a video_cover_retention that 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-lib becomes MY_LIB for lookups like SUNO_MY_LIB_TOKEN.