pogo-masterfile-types 0.1.13

Generated Rust types for the Pokémon GO masterfile, with a typed parse_masterfile dispatcher.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CombatType {
    pub excellent_level_threshold: f64,
    pub great_level_threshold: f64,
    pub nice_level_threshold: f64,
    pub r#type: String,
}

crate::masterfile_entry!(CombatTypeEntry, CombatTypeEntryData, combat_type: CombatType);