rustemon 3.2.0

Library wrapping the awesome PokeAPI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Machines group models

use super::{games::VersionGroup, items::Item, moves::Move, resource::NamedApiResource};

/// [Machine official documentation](https://pokeapi.co/docs/v2#machine)
#[derive(Default, Debug, Clone, PartialEq, Eq, serde::Deserialize)]
pub struct Machine {
    /// The identifier for this resource.
    pub id: i64,
    /// The TM or HM item that corresponds to this machine.
    pub item: NamedApiResource<Item>,
    /// The move that is taught by this machine.
    #[serde(rename = "move")]
    pub move_: NamedApiResource<Move>,
    /// The version group that this machine applies to.
    pub version_group: NamedApiResource<VersionGroup>,
}