tf2-enum 0.13.0

Provides enumerated types for models related to the Team Fortress 2 item schema.
Documentation
use serde::{Deserialize, Serialize};
use strum::{Display, EnumCount, EnumIter, EnumString};

/// Capability.
#[derive(
    Debug,
    Clone,
    Copy,
    Eq,
    PartialEq,
    Ord,
    PartialOrd,
    Hash,
    Display,
    Deserialize,
    Serialize,
    EnumString,
    EnumIter,
    EnumCount,
)]
#[strum(serialize_all = "snake_case")]
#[serde(rename_all = "snake_case")]
pub enum Capability {
    /// Whether the item can be painted.
    Paintable,
    /// Whether the item can be renamed.
    Nameable,
    /// Whether the item can be crafted if purchased.
    CanCraftIfPurchased,
    /// Whether the item can be gift wrapped.
    CanGiftWrap,
    /// Whether the item can have a craft count.
    CanCraftCount,
    /// Whether the item can have a craft number.
    CanCraftMark,
    /// Whether the item can be restored.
    CanBeRestored,
    /// Whether the item can have strange parts.
    StrangeParts,
    /// Whether the item can be card upgraded.
    CanCardUpgrade,
    /// Whether the item can be strangified
    CanStrangify,
    /// Whether the item can be killstreakified.
    CanKillstreakify,
    /// Whether the item can be consumed.
    CanConsume,
    /// Whether the item can be unusualified.
    CanUnusualify,
}