[][src]Struct deezer::models::options::Options

pub struct Options {
    pub streaming: bool,
    pub streaming_duration: u64,
    pub offline: bool,
    pub hq: bool,
    pub ads_display: bool,
    pub ads_audio: bool,
    pub has_too_many_devices: bool,
    pub can_subscribe: bool,
    pub radio_skips: u64,
    pub lossless: bool,
    pub preview: bool,
    pub radio: bool,
}

Contains all the information provided for a user's Options.

Examples

let deezer = DeezerClient::new();
let options = deezer.user_options().await?;

Fields

streaming: bool

If the user can stream on the platform

streaming_duration: u64

the streaming duration of the user (in seconds?)

offline: bool

The user can listen to the music in offline mode

hq: bool

The HQ can be activated

ads_display: bool

Displays ads

ads_audio: bool

Activates audio ads

has_too_many_devices: bool

If the user reached the limit of linked devices

can_subscribe: bool

If the user can subscribe to the service

radio_skips: u64

The limit of radio skips. 0 = no limit

lossless: bool

Lossless is available

preview: bool

Allows to display the preview of the tracks

radio: bool

Allows to stream the radio

Trait Implementations

impl Debug for Options[src]

impl<'de> Deserialize<'de> for Options[src]

impl Serialize for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.