pub struct VersionGroup {
pub id: i64,
pub name: String,
pub order: i64,
pub generation: NamedApiResource<Generation>,
pub move_learn_methods: Vec<NamedApiResource<MoveLearnMethod>>,
pub pokedexes: Vec<NamedApiResource<Pokedex>>,
pub regions: Vec<NamedApiResource<Region>>,
pub versions: Vec<NamedApiResource<Version>>,
}Expand description
Fields§
§id: i64The identifier for this resource.
name: StringThe name for this resource.
order: i64Order for sorting. Almost by date of release, except similar versions are grouped together.
generation: NamedApiResource<Generation>The generation this version was introduced in.
move_learn_methods: Vec<NamedApiResource<MoveLearnMethod>>A list of methods in which Pokémon can learn moves in this version group.
pokedexes: Vec<NamedApiResource<Pokedex>>A list of Pokédexes introduces in this version group.
regions: Vec<NamedApiResource<Region>>A list of regions that can be visited in this version group.
versions: Vec<NamedApiResource<Version>>The versions this version group owns.
Trait Implementations§
Source§impl Clone for VersionGroup
impl Clone for VersionGroup
Source§fn clone(&self) -> VersionGroup
fn clone(&self) -> VersionGroup
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 VersionGroup
impl Debug for VersionGroup
Source§impl<'de> Deserialize<'de> for VersionGroup
impl<'de> Deserialize<'de> for VersionGroup
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 PartialEq for VersionGroup
impl PartialEq for VersionGroup
impl Eq for VersionGroup
impl StructuralPartialEq for VersionGroup
Auto Trait Implementations§
impl Freeze for VersionGroup
impl RefUnwindSafe for VersionGroup
impl Send for VersionGroup
impl Sync for VersionGroup
impl Unpin for VersionGroup
impl UnwindSafe for VersionGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.