[][src]Struct pokerust::Item

#[non_exhaustive]
pub struct Item {
    pub id: i16,
    pub name: String,
    pub cost: u32,
    pub fling_power: Option<u8>,
    pub fling_effect: Option<NamedAPIResource<ItemFlingEffect>>,
    pub attributes: Vec<NamedAPIResource<ItemAttribute>>,
    pub category: NamedAPIResource<ItemCategory>,
    pub effect_entries: Vec<VerboseEffect>,
    pub flavor_text_entries: Vec<VersionGroupFlavorText>,
    pub game_indices: Vec<GenerationGameIndex>,
    pub names: Vec<Name>,
    pub sprites: ItemSprites,
    pub held_by_pokemon: Vec<ItemHolderPokemon>,
    pub baby_trigger_for: Option<APIResource<EvolutionChain>>,
    pub machines: Vec<MachineVersionDetail>,
}

Fields (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: i16name: Stringcost: u32fling_power: Option<u8>fling_effect: Option<NamedAPIResource<ItemFlingEffect>>attributes: Vec<NamedAPIResource<ItemAttribute>>category: NamedAPIResource<ItemCategory>effect_entries: Vec<VerboseEffect>flavor_text_entries: Vec<VersionGroupFlavorText>game_indices: Vec<GenerationGameIndex>names: Vec<Name>sprites: ItemSpritesheld_by_pokemon: Vec<ItemHolderPokemon>baby_trigger_for: Option<APIResource<EvolutionChain>>machines: Vec<MachineVersionDetail>

Trait Implementations

impl Clone for Item[src]

impl Debug for Item[src]

impl<'de> Deserialize<'de> for Item[src]

impl Endpoint for Item[src]

type ResourceListKind = NamedAPIResourceList<Item>

impl Eq for Item[src]

impl Hash for Item[src]

impl Id for Item[src]

impl Named for Item[src]

impl PartialEq<Item> for Item[src]

impl Serialize for Item[src]

impl StructuralEq for Item[src]

impl StructuralPartialEq for Item[src]

Auto Trait Implementations

impl RefUnwindSafe for Item

impl Send for Item

impl Sync for Item

impl Unpin for Item

impl UnwindSafe for Item

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromId for T where
    T: Endpoint + Id + DeserializeOwned
[src]

impl<T> FromName for T where
    T: Endpoint + Named + DeserializeOwned
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.