1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use mangadex_api_types::TagGroup;
use serde::Deserialize;

use crate::v5::{localizedstring_array_or_map, LocalizedString};

#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct TagAttributes {
    pub name: LocalizedString,
    #[serde(with = "localizedstring_array_or_map")]
    pub description: LocalizedString,
    pub group: TagGroup,
    pub version: u32,
}