Trait Attribute

Source
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§

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

Source§

const DEFINDEX: u32 = 1_005u32

Source§

const NAME: &str = "SPELL: set Halloween footstep type"

Source§

const ATTRIBUTE_CLASS: &str = "halloween_footstep_type"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = false

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for KillstreakTier

killstreak_tier

Source§

const DEFINDEX: u32 = 2_025u32

Source§

const NAME: &str = "killstreak tier"

Source§

const ATTRIBUTE_CLASS: &str = "killstreak_tier"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = false

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for Killstreaker

killstreak_effect

Source§

const DEFINDEX: u32 = 2_013u32

Source§

const NAME: &str = "killstreak effect"

Source§

const ATTRIBUTE_CLASS: &str = "killstreak_effect"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = false

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for Paint

set_item_tint_rgb

Source§

const DEFINDEX: u32 = 142u32

Source§

const NAME: &str = "set item tint RGB"

Source§

const ATTRIBUTE_CLASS: &str = "set_item_tint_rgb"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "neutral"

Source§

const HIDDEN: bool = true

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for PaintSpell

set_item_tint_rgb_override

Source§

const DEFINDEX: u32 = 1_004u32

Source§

const NAME: &str = "SPELL: set item tint RGB"

Source§

const ATTRIBUTE_CLASS: &str = "set_item_tint_rgb_override"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = false

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for Sheen

killstreak_idleeffect

Source§

const DEFINDEX: u32 = 2_014u32

Source§

const NAME: &str = "killstreak idleeffect"

Source§

const ATTRIBUTE_CLASS: &str = "killstreak_idleeffect"

Source§

const DESCRIPTION_STRING: Option<&str>

Source§

const DESCRIPTION_FORMAT: Option<&str>

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = false

Source§

const STORED_AS_INTEGER: bool = false

Source§

impl Attribute for Wear

Source§

const DEFINDEX: u32 = 725u32

Source§

const NAME: &str = "set_item_texture_wear"

Source§

const ATTRIBUTE_CLASS: &str = "set_item_texture_wear"

Source§

const DESCRIPTION_STRING: Option<&str> = None

Source§

const DESCRIPTION_FORMAT: Option<&str> = None

Source§

const EFFECT_TYPE: &str = "positive"

Source§

const HIDDEN: bool = true

Source§

const STORED_AS_INTEGER: bool = false