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