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
38
39
40
41
42
43
44
45
46
47
48
use mangadex_api_types::MangaDexDateTime;
use serde::Deserialize;
use url::Url;
use crate::v5::{localizedstring_array_or_map, LocalizedString};
#[derive(Clone, Debug, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct AuthorAttributes {
pub name: String,
pub image_url: Option<String>,
#[serde(with = "localizedstring_array_or_map")]
pub biography: LocalizedString,
pub twitter: Option<Url>,
pub pixiv: Option<Url>,
pub melon_book: Option<Url>,
pub fan_box: Option<Url>,
pub booth: Option<Url>,
pub nico_video: Option<Url>,
pub skeb: Option<Url>,
pub fantia: Option<Url>,
pub tumblr: Option<Url>,
pub youtube: Option<Url>,
pub weibo: Option<Url>,
pub naver: Option<Url>,
pub website: Option<Url>,
pub version: u32,
pub created_at: MangaDexDateTime,
pub updated_at: Option<MangaDexDateTime>,
}