aboutsummaryrefslogtreecommitdiff
path: root/src/character.rs
diff options
context:
space:
mode:
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}