Struct assembly_xml::obj::inv::Item[][src]

pub struct Item {
    pub bound: bool,
    pub count: u32,
    pub equipped: bool,
    pub id: u64,
    pub template: u32,
    pub slot: u32,
    pub subkey: u64,
    pub x: Option<ItemExtra>,
}
Expand description

An item in an inventory

Fields

bound: bool

Whether the item is bound

count: u32

Amount of items for stackable items.

equipped: bool

Boolean whether the item is equipped.

If it isn’t, this attribute isn’t there at all, if it is, it’s set to 1.

id: u64

Object ID

template: u32

LOT

slot: u32

Slot

subkey: u64

Some kind of ID for models. Investigate. Referred to by client strings as “subkey”?

x: Option<ItemExtra>

Extra Info

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.