aboutsummaryrefslogtreecommitdiff
path: root/src/character.rs
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-09-30 23:16:19 (UTC)
committerjan <jan@ruken.pw>2016-09-30 23:16:19 (UTC)
commita6b37fa5e1bd505adfae4888896be2a3aa49ec3a (patch)
tree0a381e0533489a78758b1516680e274f5fd82216 /src/character.rs
parent361ea3a80a60bc6595a7a624b6cc5d71ddc8f6fc (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.rs32
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 @@
1use super::tags::Tag;
2use super::traits::Trait;
3
4#[derive(Debug)]
5pub struct Names {
6 pub romaji: String,
7 pub japanese: String,
8 pub aliases: Vec<String>,
9}
10
11#[derive(Debug)]
12pub struct Images {
13 pub thumb: String,
14 pub full: String,
15}
16
17#[derive(Debug)]
18pub struct Traits {
19 pub official: Vec<Trait>,
20 pub indexed: Vec<Trait>,
21}
22
23#[derive(Debug)]
1pub struct Character { 24pub 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}