Struct rspotify_model::idtypes::EpisodeId
source · [−]pub struct EpisodeId(_);
Expand description
ID of type Type::Episode
, made up of only alphanumeric characters. Refer to the module-level docs for more information.
Trait Implementations
sourceimpl Borrow<str> for EpisodeId
impl Borrow<str> for EpisodeId
Id
s may be borrowed as str
the same way Box<T>
may be
borrowed as T
or String
as str
sourceimpl<'de> Deserialize<'de> for EpisodeId
impl<'de> Deserialize<'de> for EpisodeId
sourcefn deserialize<D>(deserializer: D) -> Result<EpisodeId, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<EpisodeId, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromStr for EpisodeId
impl FromStr for EpisodeId
IDs can also be used to convert from a str
; this works both
with IDs and URIs.
sourceimpl Id for EpisodeId
impl Id for EpisodeId
sourcefn _type(&self) -> Type
fn _type(&self) -> Type
The type of the ID. The difference with Self::_type_static
is that
this method can be used so that Id
is an object-safe trait. Read more
sourcefn _type_static() -> Type where
Self: Sized,
fn _type_static() -> Type where
Self: Sized,
The type of the ID, which can be used without initializing it
sourceunsafe fn from_id_unchecked(id: &str) -> Self
unsafe fn from_id_unchecked(id: &str) -> Self
Initialize the Id without checking its validity. Read more
sourcefn from_id(id: &str) -> Result<Self, IdError> where
Self: Sized,
fn from_id(id: &str) -> Result<Self, IdError> where
Self: Sized,
Parse Spotify id from string slice Read more
impl Eq for EpisodeId
impl PlayableId for EpisodeId
impl StructuralEq for EpisodeId
impl StructuralPartialEq for EpisodeId
Auto Trait Implementations
impl RefUnwindSafe for EpisodeId
impl Send for EpisodeId
impl Sync for EpisodeId
impl Unpin for EpisodeId
impl UnwindSafe for EpisodeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more