Commit a60141db authored by Jonathan Dallas Jones's avatar Jonathan Dallas Jones
Browse files

add past_damage_relations

parent f9b64e32
Branches
No related merge requests found
Showing with 9 additions and 0 deletions
......@@ -858,6 +858,7 @@ pub struct Type {
pub names: Vec<Name>,
pub pokemon: Vec<TypePokemon>,
pub moves: Vec<NamedAPIResource<Move>>,
pub past_damage_relations: Vec<PastTypeRelations>,
}
/// <https://pokeapi.co/docs/v2.html#typepokemon>
......@@ -882,6 +883,14 @@ pub struct TypeRelations {
pub double_damage_from: Vec<NamedAPIResource<Type>>,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Hash)]
#[cfg_attr(debug_assertions, serde(deny_unknown_fields))]
#[non_exhaustive]
pub struct PastTypeRelations {
pub damage_relations: TypeRelations,
pub generation: NamedAPIResource<Generation>,
}
set_endpoint!(Ability, NamedAPIResourceList, "ability");
set_endpoint!(Characteristic, APIResourceList, "characteristic");
set_endpoint!(EggGroup, NamedAPIResourceList, "egg-group");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment