pub struct ItemModifiers {
pub recombobulated: bool,
pub hot_potato_books: i64,
pub art_of_war: i64,
pub enchantments: HashMap<String, i64>,
}Expand description
Value-bearing upgrades applied to an item, read from its ExtraAttributes.
Fields§
§recombobulated: boolWhether a recombobulator was applied (rarity_upgrades).
hot_potato_books: i64Hot potato books applied; values above 10 are fuming potato books.
art_of_war: i64Art of War books applied.
enchantments: HashMap<String, i64>Enchantments and their levels (e.g. sharpness → 7).
Trait Implementations§
Source§impl Clone for ItemModifiers
impl Clone for ItemModifiers
Source§fn clone(&self) -> ItemModifiers
fn clone(&self) -> ItemModifiers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemModifiers
impl Debug for ItemModifiers
Source§impl Default for ItemModifiers
impl Default for ItemModifiers
Source§fn default() -> ItemModifiers
fn default() -> ItemModifiers
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemModifiers
impl<'de> Deserialize<'de> for ItemModifiers
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
Source§impl PartialEq for ItemModifiers
impl PartialEq for ItemModifiers
Source§impl Serialize for ItemModifiers
impl Serialize for ItemModifiers
impl StructuralPartialEq for ItemModifiers
Auto Trait Implementations§
impl Freeze for ItemModifiers
impl RefUnwindSafe for ItemModifiers
impl Send for ItemModifiers
impl Sync for ItemModifiers
impl Unpin for ItemModifiers
impl UnsafeUnpin for ItemModifiers
impl UnwindSafe for ItemModifiers
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