pub enum PlaySource {
Album {
id: MediaId,
},
Playlist {
id: String,
},
Queued,
Unknown,
}Expand description
Where a track’s play was started.
Variants§
Album
Playing album id, in order or shuffled.
Playlist
Playing playlist id (Liked and All included).
Queued
Added to the queue by hand (“Play next”, “Add to queue”).
Unknown
A source this build does not know: kept as no source.
Trait Implementations§
Source§impl Clone for PlaySource
impl Clone for PlaySource
Source§impl Debug for PlaySource
impl Debug for PlaySource
Source§impl<'de> Deserialize<'de> for PlaySource
impl<'de> Deserialize<'de> for PlaySource
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
impl Eq for PlaySource
Source§impl Hash for PlaySource
impl Hash for PlaySource
Source§impl PartialEq for PlaySource
impl PartialEq for PlaySource
Source§impl Serialize for PlaySource
impl Serialize for PlaySource
impl StructuralPartialEq for PlaySource
Auto Trait Implementations§
impl Forget for PlaySource
impl Freeze for PlaySource
impl Move for PlaySource
impl RefUnwindSafe for PlaySource
impl Send for PlaySource
impl Sync for PlaySource
impl Unpin for PlaySource
impl UnsafeUnpin for PlaySource
impl UnwindSafe for PlaySource
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