diff options
author | jan <jan@ruken.pw> | 2016-09-30 23:16:19 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-09-30 23:16:19 (UTC) |
commit | a6b37fa5e1bd505adfae4888896be2a3aa49ec3a (patch) | |
tree | 0a381e0533489a78758b1516680e274f5fd82216 /src/character.rs | |
parent | 361ea3a80a60bc6595a7a624b6cc5d71ddc8f6fc (diff) |
parsen von traits und tags, wir koennen den configkram eigentlich wieder komplett entfernen. klappt so nicht wirklich.
Diffstat (limited to 'src/character.rs')
-rw-r--r-- | src/character.rs | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/src/character.rs b/src/character.rs index 9c548c1..98c4850 100644 --- a/src/character.rs +++ b/src/character.rs | |||
@@ -1,3 +1,31 @@ | |||
1 | use super::tags::Tag; | ||
2 | use super::traits::Trait; | ||
3 | |||
4 | #[derive(Debug)] | ||
5 | pub struct Names { | ||
6 | pub romaji: String, | ||
7 | pub japanese: String, | ||
8 | pub aliases: Vec<String>, | ||
9 | } | ||
10 | |||
11 | #[derive(Debug)] | ||
12 | pub struct Images { | ||
13 | pub thumb: String, | ||
14 | pub full: String, | ||
15 | } | ||
16 | |||
17 | #[derive(Debug)] | ||
18 | pub struct Traits { | ||
19 | pub official: Vec<Trait>, | ||
20 | pub indexed: Vec<Trait>, | ||
21 | } | ||
22 | |||
23 | #[derive(Debug)] | ||
1 | pub struct Character { | 24 | pub struct Character { |
2 | 25 | pub name: Names, | |
3 | } \ No newline at end of file | 26 | pub image: Images, |
27 | pub tags: Vec<Tag>, | ||
28 | pub traits: Traits, | ||
29 | |||
30 | pub role: Option<String> | ||
31 | } | ||