pub struct PlayParams {
pub id: String,
pub kind: String,
}Expand description
Play parameters identifying a playable item.
Every playable track, album, or station carries an id (Apple Music
catalog ID) and a kind (e.g. "song", "album", "radioStation").
§Examples
let pp = PlayParams { id: "1719861213".into(), kind: "song".into() };
assert_eq!(pp.id, "1719861213");Fields§
§id: StringApple Music catalog ID.
kind: StringItem kind — "song", "album", "playlist", "radioStation", etc.
Trait Implementations§
Source§impl Clone for PlayParams
impl Clone for PlayParams
Source§fn clone(&self) -> PlayParams
fn clone(&self) -> PlayParams
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 PlayParams
impl Debug for PlayParams
Source§impl<'de> Deserialize<'de> for PlayParams
impl<'de> Deserialize<'de> for PlayParams
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 Freeze for PlayParams
impl RefUnwindSafe for PlayParams
impl Send for PlayParams
impl Sync for PlayParams
impl Unpin for PlayParams
impl UnsafeUnpin for PlayParams
impl UnwindSafe for PlayParams
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