Struct spotify::status::SpotifyStatusChange
[−]
[src]
pub struct SpotifyStatusChange { pub volume: bool, pub online: bool, pub version: bool, pub running: bool, pub playing: bool, pub shuffle: bool, pub server_time: bool, pub play_enabled: bool, pub prev_enabled: bool, pub next_enabled: bool, pub client_version: bool, pub playing_position: bool, pub open_graph_state: bool, pub track: bool, }
A change in the Spotify status.
Fields
volume: bool
Indicates a change in the volume.
online: bool
Indicates a change in the online status.
version: bool
Indicates a change in the protocol version.
running: bool
Indicates a change in the running state.
playing: bool
Indicates a change in the playing state.
shuffle: bool
Indicates a change in the shuffle mode.
server_time: bool
Indicates a change in the server time.
play_enabled: bool
Indicates a change in the play enabled state.
prev_enabled: bool
Indicates a change in the prev enabled state.
next_enabled: bool
Indicates a change in the next enabled state.
client_version: bool
Indicates a change in the client version.
playing_position: bool
Indicates a change in the playing position.
open_graph_state: bool
Indicates a change in the open graph data.
track: bool
Indicates a change in the track.
Methods
impl SpotifyStatusChange
[src]
Implements SpotifyStatusChange
.
fn new_true() -> SpotifyStatusChange
Constructs a new SpotifyStatusChange
with all fields set to true.
Trait Implementations
impl From<(SpotifyStatus, SpotifyStatus)> for SpotifyStatusChange
[src]
Implements From<(SpotifyStatus, SpotifyStatus)>
for SpotifyStatusChange
.
fn from(set: (SpotifyStatus, SpotifyStatus)) -> SpotifyStatusChange
Performs the conversion.