nyantrack_common/character.rs
1use serde::{Deserialize, Serialize};
2
3use super::{entry::Entry, name::CharacterName, staff::Staff};
4
5#[derive(Debug, Serialize, Deserialize)]
6pub struct Character {
7 /// The numeric ID of the character. Must be unique within the set of
8 /// characters
9 id: u64,
10 /// The list of names for the character
11 names: Vec<CharacterName>,
12 /// A description of the character
13 description: String,
14 /// List of the VAs who have voiced this character and in what anime
15 voice_actors: Vec<(Entry, Staff)>,
16 /// List of all entries the character has appeared in
17 appearances: Vec<Entry>,
18}