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