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

Cheap conversion to str

Performs the conversion.

Ids may be borrowed as str the same way Box<T> may be borrowed as T or String as str

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Displaying the ID shows its URI

Formats the value using the given formatter. Read more

IDs can also be used to convert from a str; this works both with IDs and URIs.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Spotify object Id (guaranteed to be valid for that 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

The type of the ID, which can be used without initializing it

Initialize the Id without checking its validity. Read more

Spotify object URI in a well-known format: spotify:type:id Read more

Full Spotify object URL, can be opened in a browser Read more

Parse Spotify id from string slice Read more

Parse Spotify URI from string slice Read more

Parse Spotify id or URI from string slice Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.