pub struct AreasConfig {
pub library: Option<AreaMode>,
pub liked: Option<SourceMode>,
pub playlists: Option<SourceMode>,
pub playlist: HashMap<String, SourceMode>,
}Expand description
Per-area mode selection for an account.
library accepts off/copy/mirror; liked and playlists accept
copy/mirror; playlist overrides individual playlists by canonical Suno
id. deny_unknown_fields turns a mistyped key (e.g. libary) into a parse
error rather than a silent no-op. The playlist map cannot carry
deny_unknown_fields (its keys are dynamic playlist ids), but every value is
a closed SourceMode, so a bad mode string still errors at parse time.
Fields§
§library: Option<AreaMode>§liked: Option<SourceMode>§playlists: Option<SourceMode>§playlist: HashMap<String, SourceMode>Trait Implementations§
Source§impl Clone for AreasConfig
impl Clone for AreasConfig
Source§fn clone(&self) -> AreasConfig
fn clone(&self) -> AreasConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AreasConfig
impl Debug for AreasConfig
Source§impl Default for AreasConfig
impl Default for AreasConfig
Source§fn default() -> AreasConfig
fn default() -> AreasConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AreasConfig
impl<'de> Deserialize<'de> for AreasConfig
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
impl Eq for AreasConfig
Source§impl PartialEq for AreasConfig
impl PartialEq for AreasConfig
Source§fn eq(&self, other: &AreasConfig) -> bool
fn eq(&self, other: &AreasConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AreasConfig
Auto Trait Implementations§
impl Freeze for AreasConfig
impl RefUnwindSafe for AreasConfig
impl Send for AreasConfig
impl Sync for AreasConfig
impl Unpin for AreasConfig
impl UnsafeUnpin for AreasConfig
impl UnwindSafe for AreasConfig
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