Enum rspotify::prelude::PlayableId
source · pub enum PlayableId<'a> {
Track(TrackId<'a>),
Episode(EpisodeId<'a>),
}
Expand description
Variants§
Implementations§
source§impl<'a> PlayableId<'a>
impl<'a> PlayableId<'a>
pub fn as_ref(&'a self) -> PlayableId<'a>
pub fn into_static(self) -> PlayableId<'static>
pub fn clone_static(&'a self) -> PlayableId<'static>
Trait Implementations§
source§impl<'a> From<EpisodeId<'a>> for PlayableId<'a>
impl<'a> From<EpisodeId<'a>> for PlayableId<'a>
source§fn from(v: EpisodeId<'a>) -> PlayableId<'a>
fn from(v: EpisodeId<'a>) -> PlayableId<'a>
Converts to this type from the input type.
source§impl<'a> From<TrackId<'a>> for PlayableId<'a>
impl<'a> From<TrackId<'a>> for PlayableId<'a>
source§fn from(v: TrackId<'a>) -> PlayableId<'a>
fn from(v: TrackId<'a>) -> PlayableId<'a>
Converts to this type from the input type.
source§impl<'a> Id for PlayableId<'a>
impl<'a> Id for PlayableId<'a>
source§impl<'a> TryInto<EpisodeId<'a>> for PlayableId<'a>
impl<'a> TryInto<EpisodeId<'a>> for PlayableId<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlayableId<'a>
impl<'a> RefUnwindSafe for PlayableId<'a>
impl<'a> Send for PlayableId<'a>
impl<'a> Sync for PlayableId<'a>
impl<'a> Unpin for PlayableId<'a>
impl<'a> UnwindSafe for PlayableId<'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