Skip to main content

Settings

Struct Settings 

Source
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 Clone for Settings

Source§

fn clone(&self) -> Settings

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Settings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Settings

Source§

fn default() -> Settings

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Settings

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.