pub struct Item {Show 17 fields
pub id: ItemId,
pub name: String,
pub item_type: ItemType,
pub description: Option<String>,
pub equipable: bool,
pub level: u64,
pub rarity: ItemRarity,
pub value: u64,
pub stat1: Option<ItemStat>,
pub stat1modifier: u32,
pub stat2: Option<ItemStat>,
pub stat2modifier: u32,
pub stat3: Option<ItemStat>,
pub stat3modifier: u32,
pub custom_item: bool,
pub tradable: bool,
pub locked: bool,
}Fields§
§id: ItemId§name: String§item_type: ItemType§description: Option<String>§equipable: bool§level: u64§rarity: ItemRarity§value: u64§stat1: Option<ItemStat>§stat1modifier: u32§stat2: Option<ItemStat>§stat2modifier: u32§stat3: Option<ItemStat>§stat3modifier: u32§custom_item: bool§tradable: bool§locked: boolTrait 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 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