pub struct CurrentlyPlayingObject {
pub context: ContextObject,
pub currently_playing_type: String,
pub is_playing: bool,
pub item: PlaylistItemType<TrackObject, EpisodeObject>,
pub progress_ms: usize,
pub shuffle_state: String,
pub timestamp: usize,
}Expand description
Fields§
§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.
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.
shuffle_state: StringIf shuffle is on or off.
timestamp: usizeUnix Millisecond Timestamp when data was fetched.
Trait Implementations§
Source§impl Clone for CurrentlyPlayingObject
impl Clone for CurrentlyPlayingObject
Source§fn clone(&self) -> CurrentlyPlayingObject
fn clone(&self) -> CurrentlyPlayingObject
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 Debug for CurrentlyPlayingObject
impl Debug for CurrentlyPlayingObject
Source§impl<'de> Deserialize<'de> for CurrentlyPlayingObject
impl<'de> Deserialize<'de> for CurrentlyPlayingObject
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 CurrentlyPlayingObject
impl PartialEq for CurrentlyPlayingObject
Source§impl Serialize for CurrentlyPlayingObject
impl Serialize for CurrentlyPlayingObject
impl Eq for CurrentlyPlayingObject
impl StructuralPartialEq for CurrentlyPlayingObject
Auto Trait Implementations§
impl Freeze for CurrentlyPlayingObject
impl RefUnwindSafe for CurrentlyPlayingObject
impl Send for CurrentlyPlayingObject
impl Sync for CurrentlyPlayingObject
impl Unpin for CurrentlyPlayingObject
impl UnwindSafe for CurrentlyPlayingObject
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.