Struct rspotify_model::idtypes::TrackId
source · [−]pub struct TrackId(_);
Expand description
ID of type Type::Track
, made up of only alphanumeric characters. Refer to the module-level docs for more information.
Trait Implementations
sourceimpl Borrow<str> for TrackId
impl Borrow<str> for TrackId
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 TrackId
impl<'de> Deserialize<'de> for TrackId
sourcefn deserialize<D>(deserializer: D) -> Result<TrackId, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<TrackId, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromStr for TrackId
impl FromStr for TrackId
IDs can also be used to convert from a str
; this works both
with IDs and URIs.
sourceimpl Id for TrackId
impl Id for TrackId
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 TrackId
impl PlayableId for TrackId
impl StructuralEq for TrackId
impl StructuralPartialEq for TrackId
Auto Trait Implementations
impl RefUnwindSafe for TrackId
impl Send for TrackId
impl Sync for TrackId
impl Unpin for TrackId
impl UnwindSafe for TrackId
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