pub struct LibrarySongAttributes {
pub album_name: Option<String>,
pub artist_name: String,
pub artwork: Artwork,
pub content_rating: Option<ContentRating>,
pub disc_number: Option<u32>,
pub duration_in_millis: u32,
pub genre_names: Vec<String>,
pub has_lyrics: bool,
pub name: String,
pub play_params: Option<PlayParameters>,
pub release_date: Option<YearOrDate>,
pub track_number: Option<u32>,
}Expand description
Library song attributes
Fields§
§album_name: Option<String>The name of the album the song appears on
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
disc_number: Option<u32>The disc number the song appears on
duration_in_millis: u32The approximate length of the song in milliseconds
genre_names: Vec<String>The genre names the song is associated with
has_lyrics: boolIndicates if the song has lyrics available in the Apple Music catalog. If true, the song has lyrics available; otherwise, it does not
name: StringThe localized name of the song
play_params: Option<PlayParameters>The parameters to use to playback the song
release_date: Option<YearOrDate>The release date of the song, when known, in YYYY-MM-DD or YYYY format. Pre-release songs may have an expected release date in the future
track_number: Option<u32>The number of the song in the album’s track list
Trait Implementations§
Source§impl Clone for LibrarySongAttributes
impl Clone for LibrarySongAttributes
Source§fn clone(&self) -> LibrarySongAttributes
fn clone(&self) -> LibrarySongAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more