pub struct Award {
pub id: Option<i32>,
pub name: Option<String>,
pub year: Option<i32>,
pub description: Option<String>,
}Expand description
Award model containing information about an award
This struct represents an award with its identification, name, year, and description.
§Examples
use qobuz_api_rust::models::Award;
let award = Award {
id: Some(456),
name: Some("Best Album".to_string()),
year: Some(2023),
description: Some("Award for the best album of the year".to_string()),
};Fields§
§id: Option<i32>Unique identifier for the award
name: Option<String>Name of the award
year: Option<i32>Year when the award was given
description: Option<String>Description of the award
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Award
impl<'de> Deserialize<'de> for Award
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 Award
impl RefUnwindSafe for Award
impl Send for Award
impl Sync for Award
impl Unpin for Award
impl UnwindSafe for Award
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