pub struct Story {
pub id: Option<String>,
pub section_slugs: Option<Vec<String>>,
pub title: Option<String>,
pub description_short: Option<String>,
pub authors: Option<Vec<Author>>,
pub image: Option<String>,
pub display_date: Option<i64>,
}Expand description
Story model containing information about a story or article
This struct represents a story or article with its identification, title, description, authors, and various metadata.
§Examples
use qobuz_api_rust::models::Story;
let story = Story {
id: Some("story123".to_string()),
title: Some("Music Story".to_string()),
display_date: Some(1672531200), // Unix timestamp
..Default::default()
};Fields§
§id: Option<String>Unique identifier for the story
section_slugs: Option<Vec<String>>List of section slugs the story belongs to
title: Option<String>Title of the story
description_short: Option<String>Short description of the story
List of authors who wrote the story
image: Option<String>URL to the story’s main image
display_date: Option<i64>Display date for the story as a Unix timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Story
impl<'de> Deserialize<'de> for Story
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 Story
impl RefUnwindSafe for Story
impl Send for Story
impl Sync for Story
impl Unpin for Story
impl UnwindSafe for Story
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