vndb_api/format/traits.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Deserialize, Serialize, Debug)]
4pub struct Trait {
5 /// Vndbid
6 pub id: Option<String>,
7 /// Trait names are not necessarily self-describing
8 /// So they should always be displayed together with their “group”
9 pub name: Option<String>,
10 pub aliases: Option<Vec<String>>,
11 /// May contain formatting codes
12 pub description: Option<String>,
13 pub searchable: Option<bool>,
14 pub applicable: Option<bool>,
15 /// Vndbid
16 pub group_id: Option<String>,
17 pub group_name: Option<String>,
18 /// Integer number of characters this trait has been applied to including child traits
19 pub char_count: Option<u32>,
20}