pub trait Attribute: Sized {
const DEFINDEX: u32;
const NAME: &str;
const ATTRIBUTE_CLASS: &str;
const DESCRIPTION_STRING: Option<&str>;
const DESCRIPTION_FORMAT: Option<&str>;
const EFFECT_TYPE: &str;
const HIDDEN: bool;
const STORED_AS_INTEGER: bool;
}
Expand description
Attribute values for an item attribute.
Required Associated Constants§
const DEFINDEX: u32
const NAME: &str
const ATTRIBUTE_CLASS: &str
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str
const HIDDEN: bool
const STORED_AS_INTEGER: bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl Attribute for FootprintsSpell
impl Attribute for FootprintsSpell
const DEFINDEX: u32 = 1_005u32
const NAME: &str = "SPELL: set Halloween footstep type"
const ATTRIBUTE_CLASS: &str = "halloween_footstep_type"
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str = "positive"
const HIDDEN: bool = false
const STORED_AS_INTEGER: bool = false
Source§impl Attribute for KillstreakTier
killstreak_tier
impl Attribute for KillstreakTier
killstreak_tier
const DEFINDEX: u32 = 2_025u32
const NAME: &str = "killstreak tier"
const ATTRIBUTE_CLASS: &str = "killstreak_tier"
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str = "positive"
const HIDDEN: bool = false
const STORED_AS_INTEGER: bool = false
Source§impl Attribute for Killstreaker
killstreak_effect
impl Attribute for Killstreaker
killstreak_effect
const DEFINDEX: u32 = 2_013u32
const NAME: &str = "killstreak effect"
const ATTRIBUTE_CLASS: &str = "killstreak_effect"
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str = "positive"
const HIDDEN: bool = false
const STORED_AS_INTEGER: bool = false
Source§impl Attribute for Paint
set_item_tint_rgb
impl Attribute for Paint
set_item_tint_rgb
const DEFINDEX: u32 = 142u32
const NAME: &str = "set item tint RGB"
const ATTRIBUTE_CLASS: &str = "set_item_tint_rgb"
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str = "neutral"
const HIDDEN: bool = true
const STORED_AS_INTEGER: bool = false
Source§impl Attribute for PaintSpell
set_item_tint_rgb_override
impl Attribute for PaintSpell
set_item_tint_rgb_override
const DEFINDEX: u32 = 1_004u32
const NAME: &str = "SPELL: set item tint RGB"
const ATTRIBUTE_CLASS: &str = "set_item_tint_rgb_override"
const DESCRIPTION_STRING: Option<&str>
const DESCRIPTION_FORMAT: Option<&str>
const EFFECT_TYPE: &str = "positive"
const HIDDEN: bool = false
const STORED_AS_INTEGER: bool = false
Source§impl Attribute for Sheen
killstreak_idleeffect
impl Attribute for Sheen
killstreak_idleeffect