Struct assembly_xml::obj::inv::Item
source · 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: boolWhether the item is bound
count: u32Amount of items for stackable items.
equipped: boolBoolean 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: u64Object ID
template: u32LOT
slot: u32Slot
subkey: u64Some kind of ID for models. Investigate. Referred to by client strings as “subkey”?
x: Option<ItemExtra>Extra Info
Trait Implementations§
source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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