pub struct Settings {Show 20 fields
pub format: Option<AudioFormat>,
pub concurrency: Option<u32>,
pub retries: Option<u32>,
pub min_newest: Option<u32>,
pub token_command: Option<String>,
pub animated_covers: Option<bool>,
pub video_cover_retention: Option<VideoCoverRetention>,
pub animated_cover_quality: Option<u8>,
pub animated_cover_max_fps: Option<u32>,
pub animated_cover_max_width: Option<u32>,
pub animated_cover_compression_level: Option<u8>,
pub animated_cover_lossless: Option<bool>,
pub details_sidecar: Option<bool>,
pub lyrics_sidecar: Option<bool>,
pub lrc_sidecar: Option<bool>,
pub video_mp4: Option<bool>,
pub download_stems: Option<bool>,
pub stem_format: Option<StemFormat>,
pub naming_template: Option<String>,
pub character_set: Option<CharacterSet>,
}Expand description
The overridable settings block, shared verbatim by every precedence tier.
One declaration is the whole point: a new knob is added here once and every
tier that flattens it (global Defaults, per-account AccountConfig,
per-source SourceConfig, and the CLI FlagOverrides) gains it, instead
of being mirrored across the structs where forgetting one silently drops the
setting from a tier.
Fields§
§format: Option<AudioFormat>§concurrency: Option<u32>§retries: Option<u32>§min_newest: Option<u32>§token_command: Option<String>The command whose stdout mints a token. Resolved from the
SUNO_[<LABEL>_]TOKEN_COMMAND env tiers then the per-source, per-account,
and global token_command config keys. There is deliberately no
--token-command flag, so setting this on FlagOverrides::settings is
intentionally never read by Config::resolve; configure it in
[defaults]/[accounts.<label>]/[sources.<name>] or the environment.
animated_covers: Option<bool>§video_cover_retention: Option<VideoCoverRetention>§animated_cover_quality: Option<u8>§animated_cover_max_fps: Option<u32>§animated_cover_max_width: Option<u32>§animated_cover_compression_level: Option<u8>§animated_cover_lossless: Option<bool>§details_sidecar: Option<bool>§lyrics_sidecar: Option<bool>§lrc_sidecar: Option<bool>§video_mp4: Option<bool>§download_stems: Option<bool>§stem_format: Option<StemFormat>§naming_template: Option<String>§character_set: Option<CharacterSet>