pub struct LibraryAlbumAttributes {
pub artist_name: String,
pub artwork: Artwork,
pub content_rating: Option<ContentRating>,
pub date_added: Option<YearOrDate>,
pub name: String,
pub play_params: Option<PlayParameters>,
pub release_date: Option<YearOrDate>,
pub track_count: u32,
pub genre_names: Vec<String>,
}Expand description
Library album attributes
Fields§
§artist_name: StringThe artist’s name
artwork: ArtworkThe album artwork
content_rating: Option<ContentRating>The Recording Industry Association of America (RIAA) rating of the content. The possible values for this rating are clean and explicit. No value means no rating
date_added: Option<YearOrDate>The date the album was added to the library, in YYYY-MM-DD or YYYY format
name: StringThe localized name of the album
play_params: Option<PlayParameters>The parameters to use to playback the tracks of the album
release_date: Option<YearOrDate>The release date of the album, when known, in YYYY-MM-DD or YYYY format. Pre-release albums may have an expected release date in the future
track_count: u32The number of tracks
genre_names: Vec<String>The names of the genres associated with this album
Trait Implementations§
Source§impl Clone for LibraryAlbumAttributes
impl Clone for LibraryAlbumAttributes
Source§fn clone(&self) -> LibraryAlbumAttributes
fn clone(&self) -> LibraryAlbumAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryAlbumAttributes
impl Debug for LibraryAlbumAttributes
Source§impl Default for LibraryAlbumAttributes
impl Default for LibraryAlbumAttributes
Source§fn default() -> LibraryAlbumAttributes
fn default() -> LibraryAlbumAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryAlbumAttributeswhere
LibraryAlbumAttributes: Default,
impl<'de> Deserialize<'de> for LibraryAlbumAttributeswhere
LibraryAlbumAttributes: Default,
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
impl Eq for LibraryAlbumAttributes
Source§impl Hash for LibraryAlbumAttributes
impl Hash for LibraryAlbumAttributes
Source§impl PartialEq for LibraryAlbumAttributes
impl PartialEq for LibraryAlbumAttributes
Source§fn eq(&self, other: &LibraryAlbumAttributes) -> bool
fn eq(&self, other: &LibraryAlbumAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LibraryAlbumAttributes
impl Serialize for LibraryAlbumAttributes
impl StructuralPartialEq for LibraryAlbumAttributes
Auto Trait Implementations§
impl Freeze for LibraryAlbumAttributes
impl RefUnwindSafe for LibraryAlbumAttributes
impl Send for LibraryAlbumAttributes
impl Sync for LibraryAlbumAttributes
impl Unpin for LibraryAlbumAttributes
impl UnsafeUnpin for LibraryAlbumAttributes
impl UnwindSafe for LibraryAlbumAttributes
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