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) -> Self
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 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<'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§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§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> UnsafeUnpin 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