pub struct AccountConfig {
pub token: Option<String>,
pub root: Option<String>,
pub account_id: Option<String>,
pub settings: Settings,
pub sources: HashMap<String, SourceConfig>,
pub areas: Option<AreasConfig>,
pub albums: HashMap<String, String>,
pub lead_tracks: Vec<String>,
}Expand description
Configuration for a single named account.
Fields§
§token: Option<String>§root: Option<String>§account_id: Option<String>Optional Suno user id to assert this account authenticates as, refusing to run on a mismatch (a belt-and-braces check alongside the on-disk owner pin in the lineage store).
settings: Settings§sources: HashMap<String, SourceConfig>§areas: Option<AreasConfig>Per-area mode selection (sync vs copy) for this account’s library,
liked feed, and playlists. Absent means the classic single-verb run.
albums: HashMap<String, String>Manual album-name overrides, keyed by the album’s stable lineage root id
(<root_id> = "Preferred Name"). Account-wide, never per-source, since
album identity is the lineage root. An empty or whitespace-only value is
ignored, so a stray key cannot blank an album.
lead_tracks: Vec<String>Clip ids (or unique id prefixes, e.g. the 8-char code from a filename) flagged as their lineage album’s lead: each is promoted to track 1, shifting the rest down. Account-wide; a clip’s album is inferred from its resolved root, so the album is never named here.
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§fn clone(&self) -> AccountConfig
fn clone(&self) -> AccountConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more