#[non_exhaustive]pub struct PokemonSpecies {Show 27 fields
pub id: i32,
pub name: String,
pub order: i32,
pub gender_rate: i32,
pub capture_rate: i32,
pub base_happiness: i32,
pub is_baby: bool,
pub is_legendary: bool,
pub is_mythical: bool,
pub hatch_counter: i32,
pub has_gender_differences: bool,
pub forms_switchable: bool,
pub growth_rate: NamedAPIResource<GrowthRate>,
pub pokedex_numbers: Vec<PokemonSpeciesDexEntry>,
pub egg_groups: NamedAPIResource<EggGroup>,
pub color: NamedAPIResource<PokemonColor>,
pub shape: NamedAPIResource<PokemonShape>,
pub evolves_from_species: NamedAPIResource<EvolutionChain>,
pub evolution_chain: APIResource<EvolutionChain>,
pub habitat: NamedAPIResource<PokemonHabitat>,
pub generation: NamedAPIResource<Generation>,
pub names: Vec<Name>,
pub pal_park_encounters: Vec<PalParkEncounterArea>,
pub flavor_text_entries: Vec<FlavorText>,
pub form_descriptions: Vec<Description>,
pub genera: Vec<Genus>,
pub varieties: Vec<PokemonSpeciesVariety>,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: i32§name: String§order: i32§gender_rate: i32§capture_rate: i32§base_happiness: i32§is_baby: bool§is_legendary: bool§is_mythical: bool§hatch_counter: i32§has_gender_differences: bool§forms_switchable: bool§growth_rate: NamedAPIResource<GrowthRate>§pokedex_numbers: Vec<PokemonSpeciesDexEntry>§egg_groups: NamedAPIResource<EggGroup>§color: NamedAPIResource<PokemonColor>§shape: NamedAPIResource<PokemonShape>§evolves_from_species: NamedAPIResource<EvolutionChain>§evolution_chain: APIResource<EvolutionChain>§habitat: NamedAPIResource<PokemonHabitat>§generation: NamedAPIResource<Generation>§names: Vec<Name>§pal_park_encounters: Vec<PalParkEncounterArea>§flavor_text_entries: Vec<FlavorText>§form_descriptions: Vec<Description>§genera: Vec<Genus>§varieties: Vec<PokemonSpeciesVariety>Trait Implementations§
Source§impl Clone for PokemonSpecies
impl Clone for PokemonSpecies
Source§fn clone(&self) -> PokemonSpecies
fn clone(&self) -> PokemonSpecies
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PokemonSpecies
impl Debug for PokemonSpecies
Source§impl<'de> Deserialize<'de> for PokemonSpecies
impl<'de> Deserialize<'de> for PokemonSpecies
Source§fn 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
Source§impl Hash for PokemonSpecies
impl Hash for PokemonSpecies
Source§impl PartialEq for PokemonSpecies
impl PartialEq for PokemonSpecies
Source§impl Serialize for PokemonSpecies
impl Serialize for PokemonSpecies
impl Eq for PokemonSpecies
impl StructuralPartialEq for PokemonSpecies
Auto Trait Implementations§
impl Freeze for PokemonSpecies
impl RefUnwindSafe for PokemonSpecies
impl !Send for PokemonSpecies
impl !Sync for PokemonSpecies
impl Unpin for PokemonSpecies
impl UnwindSafe for PokemonSpecies
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more