Skip to main content

api_swgoh_gg/model/
unit.rs

1use crate::model::gear_level::GearLevel;
2use crate::model::Alignment;
3
4#[derive(Debug, Deserialize)]
5pub struct Unit {
6    pub ability_classes: Vec<String>,
7    pub activate_shard_count: u64,
8    pub alignment: Alignment,
9    pub base_id: String,
10    pub categories: Vec<String>,
11    pub combat_type: i64,
12    pub description: String,
13    pub gear_levels: Vec<GearLevel>,
14    pub image: String,
15    pub name: String,
16    pub pk: u64,
17    pub power: u64,
18    pub role: String,
19    pub ship: String,
20    pub ship_slot: Option<u64>,
21    pub url: String,
22}