pub enum Capability {
CanGiftWrap,
Nameable,
CanCraftMark,
StrangeParts,
CanBeRestored,
CanStrangify,
CanCardUpgrade,
CanConsume,
CanKillstreakify,
CanCraftIfPurchased,
Paintable,
CanCraftCount,
}
Expand description
Capability. Not meant for serialization.
Variants§
CanGiftWrap
Whether the item can be gift wrapped.
Nameable
Whether the item can be renamed.
CanCraftMark
Whether the item can have a craft number.
StrangeParts
Whether the item can have strange parts.
CanBeRestored
Whether the item can be restored.
CanStrangify
Whether the item can be strangified
CanCardUpgrade
Whether the item can be card upgraded.
CanConsume
Whether the item can be consumed.
CanKillstreakify
Whether the item can be killstreakified.
CanCraftIfPurchased
Whether the item can be crafted if purchased.
Paintable
Whether the item can be painted.
CanCraftCount
Whether the item can have a craft count.
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 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 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