Struct spotify_rs::model::player::PlaybackState
source · pub struct PlaybackState {
pub device: Option<Device>,
pub repeat_state: Option<RepeatState>,
pub shuffle_state: Option<bool>,
pub context: Option<Context>,
pub timestamp: u64,
pub progress_ms: Option<u32>,
pub is_playing: bool,
pub item: Option<PlayableItem>,
pub currently_playing_type: CurrentlyPlayingType,
pub actions: Actions,
}Fields§
§device: Option<Device>§repeat_state: Option<RepeatState>§shuffle_state: Option<bool>§context: Option<Context>§timestamp: u64§progress_ms: Option<u32>§is_playing: bool§item: Option<PlayableItem>§currently_playing_type: CurrentlyPlayingType§actions: ActionsTrait Implementations§
source§impl Clone for PlaybackState
impl Clone for PlaybackState
source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
Returns a copy of the value. Read more
1.0.0 · 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 PlaybackState
impl Debug for PlaybackState
source§impl<'de> Deserialize<'de> for PlaybackState
impl<'de> Deserialize<'de> for PlaybackState
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
Auto Trait Implementations§
impl RefUnwindSafe for PlaybackState
impl Send for PlaybackState
impl Sync for PlaybackState
impl Unpin for PlaybackState
impl UnwindSafe for PlaybackState
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