[][src]Struct connectr::settings::Settings

pub struct Settings {
    pub port: u32,
    pub secret: String,
    pub client_id: String,
    pub access_token: Option<String>,
    pub refresh_token: Option<String>,
    pub expire_utc: Option<u64>,
    pub presets: Vec<(String, String)>,
    pub default_quicksave: Option<String>,
    pub quicksave: BTreeMap<String, String>,
    pub alarms: Vec<AlarmConfig>,
    pub lastfm_enabled: bool,
    pub lastfm: Option<LastfmSettings>,
}

Fields

port: u32secret: Stringclient_id: Stringaccess_token: Option<String>refresh_token: Option<String>expire_utc: Option<u64>presets: Vec<(String, String)>default_quicksave: Option<String>quicksave: BTreeMap<String, String>alarms: Vec<AlarmConfig>lastfm_enabled: boollastfm: Option<LastfmSettings>

Methods

impl Settings[src]

pub fn quick_save_playlist(&self, context: &str) -> Option<&str>[src]

Trait Implementations

impl Default for Settings[src]

Auto Trait Implementations

impl Send for Settings

impl Sync for Settings

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> UnsafeAny for T where
    T: Any

impl<T> Erased for T