pub struct CurrentlyPlayingContextObject {
pub actions: DisallowsObject,
pub context: ContextObject,
pub currently_playing_type: String,
pub device: DeviceObject,
pub is_playing: bool,
pub item: PlaylistItemType<TrackObject, EpisodeObject>,
pub progress_ms: usize,
pub repeat_state: String,
pub shuffle_state: String,
pub timestamp: usize,
}Expand description
Fields§
§actions: DisallowsObjectAllows to update the user interface based on which playback actions are available within the current context.
context: ContextObjectA Context Object. Can be null.
currently_playing_type: StringThe object type of the currently playing item. Can be one of track, episode, ad or unknown.
device: DeviceObjectThe device that is currently active.
is_playing: boolIf something is currently playing, return true.
item: PlaylistItemType<TrackObject, EpisodeObject>The currently playing track or episode. Can be null.
progress_ms: usizeProgress into the currently playing track or episode. Can be null.
repeat_state: Stringoff, track, context
shuffle_state: StringIf shuffle is on or off.
timestamp: usizeUnix Millisecond Timestamp when data was fetched.
Trait Implementations§
Source§impl Clone for CurrentlyPlayingContextObject
impl Clone for CurrentlyPlayingContextObject
Source§fn clone(&self) -> CurrentlyPlayingContextObject
fn clone(&self) -> CurrentlyPlayingContextObject
Returns a duplicate 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<'de> Deserialize<'de> for CurrentlyPlayingContextObject
impl<'de> Deserialize<'de> for CurrentlyPlayingContextObject
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
Source§impl PartialEq for CurrentlyPlayingContextObject
impl PartialEq for CurrentlyPlayingContextObject
Source§fn eq(&self, other: &CurrentlyPlayingContextObject) -> bool
fn eq(&self, other: &CurrentlyPlayingContextObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CurrentlyPlayingContextObject
impl StructuralPartialEq for CurrentlyPlayingContextObject
Auto Trait Implementations§
impl Freeze for CurrentlyPlayingContextObject
impl RefUnwindSafe for CurrentlyPlayingContextObject
impl Send for CurrentlyPlayingContextObject
impl Sync for CurrentlyPlayingContextObject
impl Unpin for CurrentlyPlayingContextObject
impl UnwindSafe for CurrentlyPlayingContextObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.