diff options
author | jan <jan@ruken.pw> | 2016-10-01 17:12:39 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-10-01 17:12:50 (UTC) |
commit | 6269372d8f4fc893d1679e6c56d66aefe24c6588 (patch) | |
tree | a88f567137fb07656549387d062a9b19b3a76586 /src/character.rs | |
parent | 9138d3e359fcf7283b78f48c8d2d58a492814773 (diff) |
serde
Diffstat (limited to 'src/character.rs')
-rw-r--r-- | src/character.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/character.rs b/src/character.rs index b0322dd..c1d3829 100644 --- a/src/character.rs +++ b/src/character.rs | |||
@@ -9,26 +9,26 @@ use super::tiles; | |||
9 | 9 | ||
10 | use std::collections::HashMap; | 10 | use std::collections::HashMap; |
11 | 11 | ||
12 | #[derive(Debug)] | 12 | #[derive(Debug, Serialize)] |
13 | pub struct Names { | 13 | pub struct Names { |
14 | pub romaji: String, | 14 | pub romaji: String, |
15 | pub japanese: String, | 15 | pub japanese: String, |
16 | pub aliases: Vec<String>, | 16 | pub aliases: Vec<String>, |
17 | } | 17 | } |
18 | 18 | ||
19 | #[derive(Debug)] | 19 | #[derive(Debug, Serialize)] |
20 | pub struct Images { | 20 | pub struct Images { |
21 | pub thumb: String, | 21 | pub thumb: String, |
22 | pub full: String, | 22 | pub full: String, |
23 | } | 23 | } |
24 | 24 | ||
25 | #[derive(Debug)] | 25 | #[derive(Debug, Serialize)] |
26 | pub struct Traits { | 26 | pub struct Traits { |
27 | pub official: Vec<DLListItem>, | 27 | pub official: Vec<DLListItem>, |
28 | pub indexed: Vec<DLListItem>, | 28 | pub indexed: Vec<DLListItem>, |
29 | } | 29 | } |
30 | 30 | ||
31 | #[derive(Debug)] | 31 | #[derive(Debug, Serialize)] |
32 | pub struct Character { | 32 | pub struct Character { |
33 | pub name: Names, | 33 | pub name: Names, |
34 | pub image: Images, | 34 | pub image: Images, |