pub struct Tag {
pub id: Option<i32>,
pub name: Option<String>,
pub name_json: Option<String>,
pub slug: Option<String>,
pub color: Option<String>,
pub is_discover: Option<bool>,
pub featured_tag_id: Option<String>,
pub genre_tag: Option<GenreTag>,
}Expand description
Tag model containing information about a tag
This struct represents a tag with its identification, name, slug, color, and various properties related to discovery and genre classification.
§Examples
use qobuz_api_rust::models::Tag;
let tag = Tag {
id: Some(123),
name: Some("Jazz".to_string()),
slug: Some("jazz".to_string()),
..Default::default()
};Fields§
§id: Option<i32>Unique identifier for the tag
name: Option<String>Name of the tag
name_json: Option<String>Name of the tag in JSON format
slug: Option<String>URL-friendly slug for the tag
color: Option<String>Color associated with the tag for UI purposes
is_discover: Option<bool>Whether the tag is a discovery tag
featured_tag_id: Option<String>ID of the featured tag
genre_tag: Option<GenreTag>Genre tag information for the tag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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 Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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