Struct spotify::status::SpotifyStatus [] [src]

pub struct SpotifyStatus {
    pub volume: f32,
    pub online: bool,
    pub version: i32,
    pub running: bool,
    pub playing: bool,
    pub shuffle: bool,
    pub server_time: i64,
    pub play_enabled: bool,
    pub prev_enabled: bool,
    pub next_enabled: bool,
    pub client_version: String,
    pub playing_position: f32,
    pub open_graph_state: OpenGraphState,
    pub track: Track,
}

A Spotify status.

Fields

The volume. Valid values are [0.0...1.0].

Whether the client is online.

The protocol version.

Whether the client is running.

Whether a track is currently playing.

Whether shuffle mode is activated.

The server time as a unix timestamp.

Whether playing a track is enabled.

Whether playing the previous track is enabled.

Whether playing the next track is enabled.

The client version.

The current playing position.

The Open Graph state.

The currently playing track.

Methods

impl SpotifyStatus
[src]

Implements SpotifyStatus.

Gets an easy-to-work-with abstraction over the currently playing track, containing only the names of the track, album and artist.

Gets the Spotify client version.

Trait Implementations

impl From<JsonValue> for SpotifyStatus
[src]

Implements From<JsonValue> for SpotifyStatus.

Performs the conversion.