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