pub struct Article {Show 14 fields
pub id: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub description_short: Option<String>,
pub url: Option<String>,
pub image: Option<String>,
pub image_rectangle: Option<String>,
pub authors: Option<Vec<Author>>,
pub display_date: Option<String>,
pub section_slugs: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub slug: Option<String>,
pub created_at: Option<i64>,
pub updated_at: Option<i64>,
}Expand description
Article model containing information about an article
This struct represents an article with its identification, title, description, authors, and various metadata.
§Examples
use qobuz_api_rust::models::Article;
let article = Article {
id: Some("article123".to_string()),
title: Some("Music Review".to_string()),
..Default::default()
};Fields§
§id: Option<String>Unique identifier for the article
title: Option<String>Title of the article
description: Option<String>Full description of the article
description_short: Option<String>Short description of the article
url: Option<String>URL to the article
image: Option<String>URL to the article’s main image
image_rectangle: Option<String>URL to the article’s rectangular image
List of authors who wrote the article
display_date: Option<String>Display date for the article
section_slugs: Option<Vec<String>>List of section slugs the article belongs to
List of tags associated with the article
slug: Option<String>URL-friendly slug for the article
created_at: Option<i64>Unix timestamp of when the article was created
updated_at: Option<i64>Unix timestamp of when the article was last updated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Article
impl<'de> Deserialize<'de> for Article
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 Article
impl RefUnwindSafe for Article
impl Send for Article
impl Sync for Article
impl Unpin for Article
impl UnwindSafe for Article
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