diff options
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 | } | ||
