pub struct Genre {
pub id: Option<i32>,
pub name: Option<String>,
pub slug: Option<String>,
pub path: Option<Vec<i32>>,
pub color: Option<String>,
}Expand description
Genre model containing information about a musical genre
This struct represents a musical genre with its identification, name, slug, path in the genre hierarchy, and color coding.
§Examples
use qobuz_api_rust::models::Genre;
let genre = Genre {
id: Some(123),
name: Some("Classical".to_string()),
slug: Some("classical".to_string()),
..Default::default()
};Fields§
§id: Option<i32>Unique identifier for the genre
name: Option<String>Name of the genre
slug: Option<String>URL-friendly slug for the genre
path: Option<Vec<i32>>Path in the genre hierarchy as a list of genre IDs
color: Option<String>Color associated with the genre for UI purposes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Genre
impl<'de> Deserialize<'de> for Genre
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
Auto Trait Implementations§
impl Freeze for Genre
impl RefUnwindSafe for Genre
impl Send for Genre
impl Sync for Genre
impl Unpin for Genre
impl UnwindSafe for Genre
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