[][src]Struct rscache::ItemDefinition

pub struct ItemDefinition {
    pub id: u16,
    pub inventory_model_data: InventoryModelData,
    pub character_model_data: CharacterModelData,
    pub name: String,
    pub stackable: bool,
    pub cost: i32,
    pub members_only: bool,
    pub options: [String; 5],
    pub interface_options: [String; 5],
    pub tradable: bool,
    pub noted_id: u16,
    pub noted_template: u16,
    pub count_obj: Option<[i32; 10]>,
    pub count_co: [u16; 10],
    pub team: u8,
    pub bought_link: u16,
    pub bought_tempalte: u16,
    pub params: HashMap<u32, String>,
}

Contains all the information about a certain item fetched from the cache through the ItemLoader.

The InventoryModelData and the CharacterModelData were hidden in the documents because these are rarely accessed, they contain useless information in most use-cases.

Fields

id: u16inventory_model_data: InventoryModelDatacharacter_model_data: CharacterModelDataname: Stringstackable: boolcost: i32members_only: booloptions: [String; 5]interface_options: [String; 5]tradable: boolnoted_id: u16noted_template: u16count_obj: Option<[i32; 10]>count_co: [u16; 10]team: u8bought_link: u16bought_tempalte: u16params: HashMap<u32, String>

Trait Implementations

impl Clone for ItemDefinition[src]

impl Debug for ItemDefinition[src]

impl Default for ItemDefinition[src]

Auto Trait Implementations

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> From<T> for T[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.