Struct rspotify_model::idtypes::UserId [−][src]
pub struct UserId(_);Expand description
ID of type Type::User. Refer to the module-level
docs for more information.
Note that the implementation of this specific ID differs from the rest: a user’s ID doesn’t necessarily have to be made of alphanumeric characters. It can also use underscores and other characters, but since Spotify doesn’t specify it explicitly, this just allows any string as an ID.
Trait Implementations
Cheap conversion to str
Ids may be borrowed as str the same way Box<T> may be
borrowed as T or String as str
Deserialize this value from the given Serde deserializer. Read more
Displaying the ID shows its URI
IDs can also be used to convert from a str; this works both
with IDs and URIs.
Parse Spotify id from string slice. Spotify doesn’t specify what a User ID might look like, so this will allow any kind of value.
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
The type of the ID, which can be used without initializing it
Initialize the Id without checking its validity. Read more
Parse Spotify URI from string slice Read more
Auto Trait Implementations
impl RefUnwindSafe for UserId
impl UnwindSafe for UserId
Blanket Implementations
Mutably borrows from an owned value. Read more