Struct ezomyte::Item
[−]
[src]
pub struct Item { pub id: String, pub name: Option<String>, pub base: String, pub level: u64, pub category: Quasi<ItemCategory>, pub rarity: Rarity, pub quality: Quality, pub properties: Properties, pub details: Option<ItemDetails>, pub sockets: ItemSockets, pub extra: HashMap<String, Json>, pub requirements: HashMap<Requirement, u32>, pub corrupted: bool, pub influence: Option<Influence>, pub duplicated: bool, pub flavour_text: Option<String>, }
A tradeable item in Path of Exile.
This includes all classes of wearable and usable items
with the notable exception of Currency
items.
Fields
id: String
Unique ID this game has associated with the item.
name: Option<String>
Name of the item.
It may be missing for white items, or generic items like gems.
base: String
Item base (type).
This is something like "Rustic Sash", "Crimson Jewel", or "Sunder".
level: u64
Item level.
category: Quasi<ItemCategory>
Category of the item.
This indicates what you can do with the item, e.g. the slot it is worn on.
rarity: Rarity
Item rarity, such as magic or unique.
For items other than gear, this will be just Normal
.
quality: Quality
Item quality.
properties: Properties
Innate item properties.
These properties are characteristics inherent to a particular item type, like armor/evasion/energy shield values and weapon damage range. Properties may have values (like damage ranges) or not (like gem "tags", e.g. "Spell", "Support", etc).
details: Option<ItemDetails>
Item details.
These are specific to the particular kind of item. In most cases, details specify the mods of an item.
If the item type doesn't define any details (e.g. it's a currency item),
this will be None
.
sockets: ItemSockets
Sockets an item has, if any.
extra: HashMap<String, Json>
Extra item attributes that do not fit into any other part of the schema.
This may include specific attributes of certain discontinued item types, like talismans. In any case, the attributes are preserved verbatim from the JSON.
requirements: HashMap<Requirement, u32>
Requirements for wearing or using the item.
corrupted: bool
Whether the item is corrupted.
influence: Option<Influence>
Whether the item has been influenced by the War of the Atlas.
duplicated: bool
Whether the item has been duplicated (mirrored).
flavour_text: Option<String>
Flavor text associated with the item.
Methods
impl Item
[src]
pub fn is_elder(&self) -> bool
[src]
Whether this item has an Elder-influenced base.
pub fn is_shaped(&self) -> bool
[src]
Whether this item has a Shaper-influenced base.
pub fn is_unique(&self) -> bool
[src]
Whether this is a unique item.
pub fn is_identified(&self) -> bool
[src]
Whether this item has been identified (or didn't need identification in the first place).
ⓘImportant traits for Box<W>pub fn mods<'i>(&'i self) -> Box<Iterator<Item = &'i Mod> + 'i>
[src]
Iterate over the item mods, if any.
Trait Implementations
impl Debug for Item
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Item
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more