pub struct Period {
pub id: Option<i32>,
pub name: Option<String>,
pub slug: Option<String>,
}Expand description
Period model containing information about a time period
This struct represents a time period with its identification, name, and slug.
§Examples
use qobuz_api_rust::models::Period;
let period = Period {
id: Some(1980),
name: Some("1980s".to_string()),
slug: Some("1980s".to_string()),
};Fields§
§id: Option<i32>Unique identifier for the period
name: Option<String>Name of the period
slug: Option<String>URL-friendly slug for the period
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Period
impl<'de> Deserialize<'de> for Period
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 Period
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
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