Enum rspotify::prelude::PlayContextId
source · pub enum PlayContextId<'a> {
Artist(ArtistId<'a>),
Album(AlbumId<'a>),
Playlist(PlaylistId<'a>),
Show(ShowId<'a>),
}
Expand description
Variants§
Implementations§
source§impl<'a> PlayContextId<'a>
impl<'a> PlayContextId<'a>
pub fn as_ref(&'a self) -> PlayContextId<'a>
pub fn into_static(self) -> PlayContextId<'static>
pub fn clone_static(&'a self) -> PlayContextId<'static>
Trait Implementations§
source§impl<'a> Clone for PlayContextId<'a>
impl<'a> Clone for PlayContextId<'a>
source§fn clone(&self) -> PlayContextId<'a>
fn clone(&self) -> PlayContextId<'a>
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<'a> Debug for PlayContextId<'a>
impl<'a> Debug for PlayContextId<'a>
source§impl<'a> From<AlbumId<'a>> for PlayContextId<'a>
impl<'a> From<AlbumId<'a>> for PlayContextId<'a>
source§fn from(v: AlbumId<'a>) -> PlayContextId<'a>
fn from(v: AlbumId<'a>) -> PlayContextId<'a>
Converts to this type from the input type.
source§impl<'a> From<ArtistId<'a>> for PlayContextId<'a>
impl<'a> From<ArtistId<'a>> for PlayContextId<'a>
source§fn from(v: ArtistId<'a>) -> PlayContextId<'a>
fn from(v: ArtistId<'a>) -> PlayContextId<'a>
Converts to this type from the input type.
source§impl<'a> From<PlaylistId<'a>> for PlayContextId<'a>
impl<'a> From<PlaylistId<'a>> for PlayContextId<'a>
source§fn from(v: PlaylistId<'a>) -> PlayContextId<'a>
fn from(v: PlaylistId<'a>) -> PlayContextId<'a>
Converts to this type from the input type.
source§impl<'a> From<ShowId<'a>> for PlayContextId<'a>
impl<'a> From<ShowId<'a>> for PlayContextId<'a>
source§fn from(v: ShowId<'a>) -> PlayContextId<'a>
fn from(v: ShowId<'a>) -> PlayContextId<'a>
Converts to this type from the input type.
source§impl<'a> Hash for PlayContextId<'a>
impl<'a> Hash for PlayContextId<'a>
source§impl<'a> Id for PlayContextId<'a>
impl<'a> Id for PlayContextId<'a>
source§impl<'a> PartialEq for PlayContextId<'a>
impl<'a> PartialEq for PlayContextId<'a>
source§impl<'a> Serialize for PlayContextId<'a>
impl<'a> Serialize for PlayContextId<'a>
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> TryInto<AlbumId<'a>> for PlayContextId<'a>
impl<'a> TryInto<AlbumId<'a>> for PlayContextId<'a>
source§impl<'a> TryInto<ArtistId<'a>> for PlayContextId<'a>
impl<'a> TryInto<ArtistId<'a>> for PlayContextId<'a>
source§impl<'a> TryInto<PlaylistId<'a>> for PlayContextId<'a>
impl<'a> TryInto<PlaylistId<'a>> for PlayContextId<'a>
source§fn try_into(
self,
) -> Result<PlaylistId<'a>, <PlayContextId<'a> as TryInto<PlaylistId<'a>>>::Error>
fn try_into( self, ) -> Result<PlaylistId<'a>, <PlayContextId<'a> as TryInto<PlaylistId<'a>>>::Error>
Performs the conversion.
source§impl<'a> TryInto<ShowId<'a>> for PlayContextId<'a>
impl<'a> TryInto<ShowId<'a>> for PlayContextId<'a>
impl<'a> Eq for PlayContextId<'a>
impl<'a> StructuralPartialEq for PlayContextId<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlayContextId<'a>
impl<'a> RefUnwindSafe for PlayContextId<'a>
impl<'a> Send for PlayContextId<'a>
impl<'a> Sync for PlayContextId<'a>
impl<'a> Unpin for PlayContextId<'a>
impl<'a> UnwindSafe for PlayContextId<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.