pub struct Artist {
pub name: String,
pub container_id: String,
pub playable: bool,
pub image_url: Option<Url>,
pub media_id: Option<String>,
}Expand description
Information about an artist.
Fields§
§name: StringName of the artist.
container_id: StringID representing the artist’s “container” (all music by said artist).
playable: boolIs the artist directly playable?
image_url: Option<Url>URL to an image representing the artist, if it exists.
If this is None, it may be able to be retrieved via the
GetAlbumMetadata command.
media_id: Option<String>Media ID of this artist, if it’s playable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Artist
impl<'de> Deserialize<'de> for Artist
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MediaContainerBase for Artist
impl MediaContainerBase for Artist
Source§fn container_id(&self) -> &str
fn container_id(&self) -> &str
Get the container ID of this media item.
Source§fn into_media_container(self) -> MediaContainerwhere
Self: Sized,
fn into_media_container(self) -> MediaContainerwhere
Self: Sized,
Convert this specific media container into the MediaContainer enumeration.
Source§fn as_media_container_ref(&self) -> MediaContainerRef<'_>
fn as_media_container_ref(&self) -> MediaContainerRef<'_>
Retrieve a reference to this media item as a MediaContainerRef.
Source§impl MediaItemBase for Artist
impl MediaItemBase for Artist
Source§fn into_media_item(self) -> MediaItemwhere
Self: Sized,
fn into_media_item(self) -> MediaItemwhere
Self: Sized,
Convert this specific media item into the MediaItem enumeration.
Source§fn as_media_item_ref(&self) -> MediaItemRef<'_>
fn as_media_item_ref(&self) -> MediaItemRef<'_>
Retrieve a reference to this media item as a MediaItemRef.
Source§fn try_into_media_container(self) -> Result<MediaContainer, Self>where
Self: Sized,
fn try_into_media_container(self) -> Result<MediaContainer, Self>where
Self: Sized,
Attempt to convert this specific media item into the MediaContainer enumeration. Read more
Source§fn try_as_media_container_ref(&self) -> Option<MediaContainerRef<'_>>
fn try_as_media_container_ref(&self) -> Option<MediaContainerRef<'_>>
Attempt to retrieve a reference to this media item as a MediaContainerRef. Read more
Source§impl TryFrom<Artist> for MediaContainer
impl TryFrom<Artist> for MediaContainer
Source§impl TryFrom<MediaContainer> for Artist
impl TryFrom<MediaContainer> for Artist
Source§type Error = TryFromMediaItemError
type Error = TryFromMediaItemError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Artist
impl RefUnwindSafe for Artist
impl Send for Artist
impl Sync for Artist
impl Unpin for Artist
impl UnsafeUnpin for Artist
impl UnwindSafe for Artist
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more