pub struct ItemAttribute {
pub defindex: u32,
pub value: AttributeValue,
pub float_value: Option<f32>,
}
Expand description
Container type for item attributes.
Fields§
§defindex: u32
The defindex of this attribute.
value: AttributeValue
The attribute value.
float_value: Option<f32>
The attribute float value. This is usually only None
when value is a string.
Trait Implementations§
Source§impl Clone for ItemAttribute
impl Clone for ItemAttribute
Source§fn clone(&self) -> ItemAttribute
fn clone(&self) -> ItemAttribute
Returns a duplicate of the value. Read more
1.0.0 · 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 ItemAttribute
impl Debug for ItemAttribute
Source§impl<'de> Deserialize<'de> for ItemAttribute
impl<'de> Deserialize<'de> for ItemAttribute
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 From<CustomDescAttr> for ItemAttribute
impl From<CustomDescAttr> for ItemAttribute
Source§fn from(val: CustomDescAttr) -> Self
fn from(val: CustomDescAttr) -> Self
Converts to this type from the input type.
Source§impl From<CustomNameAttr> for ItemAttribute
impl From<CustomNameAttr> for ItemAttribute
Source§fn from(val: CustomNameAttr) -> Self
fn from(val: CustomNameAttr) -> Self
Converts to this type from the input type.
Source§impl From<CustomTextureHi> for ItemAttribute
impl From<CustomTextureHi> for ItemAttribute
Source§fn from(val: CustomTextureHi) -> Self
fn from(val: CustomTextureHi) -> Self
Converts to this type from the input type.
Source§impl From<CustomTextureLo> for ItemAttribute
impl From<CustomTextureLo> for ItemAttribute
Source§fn from(val: CustomTextureLo) -> Self
fn from(val: CustomTextureLo) -> Self
Converts to this type from the input type.
Source§impl From<EventDate> for ItemAttribute
impl From<EventDate> for ItemAttribute
Source§impl From<FootprintsSpell> for ItemAttribute
impl From<FootprintsSpell> for ItemAttribute
Source§fn from(val: FootprintsSpell) -> Self
fn from(val: FootprintsSpell) -> Self
Converts to this type from the input type.
Source§impl From<GifterAccountId> for ItemAttribute
impl From<GifterAccountId> for ItemAttribute
Source§fn from(val: GifterAccountId) -> Self
fn from(val: GifterAccountId) -> Self
Converts to this type from the input type.
Source§impl From<KillEater> for ItemAttribute
impl From<KillEater> for ItemAttribute
Source§impl From<KillstreakTier> for ItemAttribute
impl From<KillstreakTier> for ItemAttribute
Source§fn from(val: KillstreakTier) -> Self
fn from(val: KillstreakTier) -> Self
Converts to this type from the input type.
Source§impl From<Killstreaker> for ItemAttribute
impl From<Killstreaker> for ItemAttribute
Source§fn from(val: Killstreaker) -> Self
fn from(val: Killstreaker) -> Self
Converts to this type from the input type.
Source§impl From<MakersMarkId> for ItemAttribute
impl From<MakersMarkId> for ItemAttribute
Source§fn from(val: MakersMarkId) -> Self
fn from(val: MakersMarkId) -> Self
Converts to this type from the input type.
Source§impl From<Paint> for ItemAttribute
impl From<Paint> for ItemAttribute
Source§impl From<PaintSpell> for ItemAttribute
impl From<PaintSpell> for ItemAttribute
Source§fn from(val: PaintSpell) -> Self
fn from(val: PaintSpell) -> Self
Converts to this type from the input type.
Source§impl From<PaintkitProtoDefIndex> for ItemAttribute
impl From<PaintkitProtoDefIndex> for ItemAttribute
Source§fn from(val: PaintkitProtoDefIndex) -> Self
fn from(val: PaintkitProtoDefIndex) -> Self
Converts to this type from the input type.
Source§impl From<Sheen> for ItemAttribute
impl From<Sheen> for ItemAttribute
Source§impl From<Spell> for ItemAttribute
impl From<Spell> for ItemAttribute
Source§impl From<TauntAttachParticleIndex> for ItemAttribute
impl From<TauntAttachParticleIndex> for ItemAttribute
Source§fn from(val: TauntAttachParticleIndex) -> Self
fn from(val: TauntAttachParticleIndex) -> Self
Converts to this type from the input type.
Source§impl From<TradableAfterDate> for ItemAttribute
impl From<TradableAfterDate> for ItemAttribute
Source§fn from(val: TradableAfterDate) -> Self
fn from(val: TradableAfterDate) -> Self
Converts to this type from the input type.
Source§impl From<UniqueCraftIndex> for ItemAttribute
impl From<UniqueCraftIndex> for ItemAttribute
Source§fn from(val: UniqueCraftIndex) -> Self
fn from(val: UniqueCraftIndex) -> Self
Converts to this type from the input type.
Source§impl From<Wear> for ItemAttribute
impl From<Wear> for ItemAttribute
Auto Trait Implementations§
impl Freeze for ItemAttribute
impl RefUnwindSafe for ItemAttribute
impl Send for ItemAttribute
impl Sync for ItemAttribute
impl Unpin for ItemAttribute
impl UnwindSafe for ItemAttribute
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