pub enum Capability {
Show 13 variants
Paintable,
Nameable,
CanCraftIfPurchased,
CanGiftWrap,
CanCraftCount,
CanCraftMark,
CanBeRestored,
StrangeParts,
CanCardUpgrade,
CanStrangify,
CanKillstreakify,
CanConsume,
CanUnusualify,
}
Expand description
Capability.
Variants§
Paintable
Whether the item can be painted.
Nameable
Whether the item can be renamed.
CanCraftIfPurchased
Whether the item can be crafted if purchased.
CanGiftWrap
Whether the item can be gift wrapped.
CanCraftCount
Whether the item can have a craft count.
CanCraftMark
Whether the item can have a craft number.
CanBeRestored
Whether the item can be restored.
StrangeParts
Whether the item can have strange parts.
CanCardUpgrade
Whether the item can be card upgraded.
CanStrangify
Whether the item can be strangified
CanKillstreakify
Whether the item can be killstreakified.
CanConsume
Whether the item can be consumed.
CanUnusualify
Whether the item can be unusualified.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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 Display for Capability
impl Display for Capability
Source§impl FromStr for Capability
impl FromStr for Capability
Source§impl Hash for Capability
impl Hash for Capability
Source§impl IntoEnumIterator for Capability
impl IntoEnumIterator for Capability
Source§impl Ord for Capability
impl Ord for Capability
Source§fn cmp(&self, other: &Capability) -> Ordering
fn cmp(&self, other: &Capability) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Capability
impl PartialEq for Capability
Source§impl PartialOrd for Capability
impl PartialOrd for Capability
Source§impl Serialize for Capability
impl Serialize for Capability
Source§impl TryFrom<&str> for Capability
impl TryFrom<&str> for Capability
impl Copy for Capability
impl Eq for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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