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> 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> Id for PlayContextId<'a>
impl<'a> Id for PlayContextId<'a>
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.
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