pub struct Settings {Show 21 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>,
pub number_singletons: Option<bool>,
}Expand description
The overridable settings block, shared verbatim by every precedence tier.
A new knob is added here once and every tier that flattens it (Defaults,
AccountConfig, SourceConfig, and the CLI [FlagOverrides]) gains it,
rather than being mirrored where forgetting one would silently drop it.
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 config keys. There is
deliberately no --token-command flag, so it is never read from
[FlagOverrides]; set it in config 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>§number_singletons: Option<bool>Whether a single-track (lone) lineage album is given a track number. When
unset it defaults to true; false leaves singletons unnumbered so a
{track2} prefix does not decorate a standalone song.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more