Enum spotify_client::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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more