pub struct Pokemon {Show 18 fields
pub id: Option<i64>,
pub name: Option<String>,
pub base_experience: Option<i64>,
pub height: Option<i64>,
pub is_default: Option<bool>,
pub order: Option<i64>,
pub weight: Option<i64>,
pub abilities: Option<Vec<PokemonAbility>>,
pub forms: Option<Vec<NamedApiResource<PokemonForm>>>,
pub game_indices: Option<Vec<VersionGameIndex>>,
pub held_items: Option<Vec<PokemonHeldItem>>,
pub location_area_encounters: Option<String>,
pub moves: Option<Vec<PokemonMove>>,
pub past_types: Option<Vec<PokemonTypePast>>,
pub sprites: Option<PokemonSprites>,
pub species: Option<NamedApiResource<PokemonSpecies>>,
pub stats: Option<Vec<PokemonStat>>,
pub types: Option<Vec<PokemonType>>,
}Expand description
Fields
id: Option<i64>The identifier for this resource.
name: Option<String>The name for this resource.
base_experience: Option<i64>The base experience gained for defeating this Pokémon.
height: Option<i64>The height of this Pokémon in decimetres.
is_default: Option<bool>Set for exactly one Pokémon used as the default for each species.
order: Option<i64>Order for sorting. Almost national order, except families are grouped together.
weight: Option<i64>The weight of this Pokémon in hectograms.
abilities: Option<Vec<PokemonAbility>>A list of abilities this Pokémon could potentially have.
forms: Option<Vec<NamedApiResource<PokemonForm>>>A list of forms this Pokémon can take on.
game_indices: Option<Vec<VersionGameIndex>>A list of game indices relevent to Pokémon item by generation.
held_items: Option<Vec<PokemonHeldItem>>A list of items this Pokémon may be holding when encountered.
location_area_encounters: Option<String>A link to a list of location areas, as well as encounter details pertaining to specific versions.
moves: Option<Vec<PokemonMove>>A list of moves along with learn methods and level details pertaining to specific version groups.
past_types: Option<Vec<PokemonTypePast>>A list of details showing types this pokémon had in previous generations.
sprites: Option<PokemonSprites>A set of sprites used to depict this Pokémon in the game. A visual representation of the various sprites can be found at PokeAPI/sprites.
species: Option<NamedApiResource<PokemonSpecies>>The species this Pokémon belongs to.
stats: Option<Vec<PokemonStat>>A list of base stat values for this Pokémon.
types: Option<Vec<PokemonType>>A list of details showing types this Pokémon has.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Pokemon
impl<'de> Deserialize<'de> for Pokemon
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Pokemon> for Pokemon
impl PartialEq<Pokemon> for Pokemon
impl StructuralPartialEq for Pokemon
Auto Trait Implementations
impl RefUnwindSafe for Pokemon
impl Send for Pokemon
impl Sync for Pokemon
impl Unpin for Pokemon
impl UnwindSafe for Pokemon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more