1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
use serde::Deserialize;
use url::Url;
use uuid::Uuid;
use crate::deserialize_null_default;
use mangadex_api_types::{Language, MangaDexDateTime};
#[derive(Clone, Debug, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct ChapterAttributes {
#[serde(deserialize_with = "deserialize_null_default")]
pub title: String,
pub volume: Option<String>,
pub chapter: Option<String>,
pub pages: u32,
pub translated_language: Language,
pub uploader: Option<Uuid>,
pub external_url: Option<Url>,
pub version: u32,
pub created_at: MangaDexDateTime,
pub updated_at: Option<MangaDexDateTime>,
pub publish_at: MangaDexDateTime,
pub readable_at: MangaDexDateTime,
}