rustgie_types/destiny/definitions/energy_types/
mod.rs

1use serde::{Deserialize, Serialize};
2
3/// Represents types of Energy that can be used for costs and payments related to Armor 2.0 mods.
4#[derive(Deserialize, Serialize)]
5pub struct DestinyEnergyTypeDefinition {
6    /// The description of the energy type, icon etc...
7    #[serde(rename = "displayProperties")]
8    pub display_properties: Option<crate::destiny::definitions::common::DestinyDisplayPropertiesDefinition>,
9
10    /// A variant of the icon that is transparent and colorless.
11    #[serde(rename = "transparentIconPath")]
12    pub transparent_icon_path: Option<String>,
13
14    /// If TRUE, the game shows this Energy type's icon. Otherwise, it doesn't. Whether you show it or not is up to you.
15    #[serde(rename = "showIcon")]
16    pub show_icon: bool,
17
18    /// We have an enumeration for Energy types for quick reference. This is the current definition's Energy type enum value.
19    #[serde(rename = "enumValue")]
20    pub enum_value: crate::destiny::DestinyEnergyType,
21
22    /// If this Energy Type can be used for determining the Type of Energy that an item can consume, this is the hash for the DestinyInvestmentStatDefinition that represents the stat which holds the Capacity for that energy type. (Note that this is optional because "Any" is a valid cost, but not valid for Capacity - an Armor must have a specific Energy Type for determining the energy type that the Armor is restricted to use)
23    #[serde(rename = "capacityStatHash")]
24    pub capacity_stat_hash: Option<u32>,
25
26    /// If this Energy Type can be used as a cost to pay for socketing Armor 2.0 items, this is the hash for the DestinyInvestmentStatDefinition that stores the plug's raw cost.
27    #[serde(rename = "costStatHash")]
28    pub cost_stat_hash: u32,
29
30    /// The unique identifier for this entity. Guaranteed to be unique for the type of entity, but not globally.
31    /// When entities refer to each other in Destiny content, it is this hash that they are referring to.
32    #[serde(rename = "hash")]
33    pub hash: u32,
34
35    /// The index of the entity as it was found in the investment tables.
36    #[serde(rename = "index")]
37    pub index: i32,
38
39    /// If this is true, then there is an entity with this identifier/type combination, but BNet is not yet allowed to show it. Sorry!
40    #[serde(rename = "redacted")]
41    pub redacted: bool,
42}