#[repr(u8)]pub enum BuffCategory {
Boon = 0,
Any = 1,
Condition = 2,
Food = 5,
Upgrade = 7,
Boost = 9,
Trait = 12,
Transform = 13,
Enhancement = 14,
Stance = 17,
}
Expand description
Buff info category after 13 December 2022.
Used in StateChange::BuffInfo
events.
Variants§
Boon = 0
Buff is a Boon.
Any = 1
Buff is generic category.
Condition = 2
Buff is a Condition.
Food = 5
Buff is granted by Food consumable.
Upgrade = 7
Buff is a gear item or upgrade.
Boost = 9
Buff is granted by a Boost consumable.
Trait = 12
Buff is granted by a Trait.
Transform = 13
Buff is a Transform.
Enhancement = 14
Buff is Enhancement granted by a Utility consumable.
Stance = 17
Buff is a Stance.
Trait Implementations§
Source§impl Clone for BuffCategory
impl Clone for BuffCategory
Source§fn clone(&self) -> BuffCategory
fn clone(&self) -> BuffCategory
Returns a copy 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 BuffCategory
impl Debug for BuffCategory
Source§impl<'de> Deserialize<'de> for BuffCategory
impl<'de> Deserialize<'de> for BuffCategory
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<BuffCategory> for u8
impl From<BuffCategory> for u8
Source§fn from(enum_value: BuffCategory) -> Self
fn from(enum_value: BuffCategory) -> Self
Converts to this type from the input type.
Source§impl Hash for BuffCategory
impl Hash for BuffCategory
Source§impl Ord for BuffCategory
impl Ord for BuffCategory
Source§fn cmp(&self, other: &BuffCategory) -> Ordering
fn cmp(&self, other: &BuffCategory) -> 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 BuffCategory
impl PartialEq for BuffCategory
Source§impl PartialOrd for BuffCategory
impl PartialOrd for BuffCategory
Source§impl Serialize for BuffCategory
impl Serialize for BuffCategory
Source§impl TryFrom<u8> for BuffCategory
impl TryFrom<u8> for BuffCategory
Source§type Error = TryFromPrimitiveError<BuffCategory>
type Error = TryFromPrimitiveError<BuffCategory>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BuffCategory
impl TryFromPrimitive for BuffCategory
const NAME: &'static str = "BuffCategory"
type Primitive = u8
type Error = TryFromPrimitiveError<BuffCategory>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BuffCategory
impl Eq for BuffCategory
impl StructuralPartialEq for BuffCategory
Auto Trait Implementations§
impl Freeze for BuffCategory
impl RefUnwindSafe for BuffCategory
impl Send for BuffCategory
impl Sync for BuffCategory
impl Unpin for BuffCategory
impl UnwindSafe for BuffCategory
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