mangadex-api-schema-rust 0.1.0

Response structs and helpers for mangadex-api
Documentation
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,
}