pub struct BuffInfo {
pub skill_id: u32,
pub category: u8,
pub stacking_type: u8,
pub max_stacks: u16,
pub duration_cap: u32,
pub invulnerable: bool,
pub invert: bool,
pub resistance: bool,
}
Expand description
Buff information from an Event
with StateChange::BuffInfo
.
Fields§
§skill_id: u32
Buff skill id.
category: u8
The category of buff.
See BuffCategory
and BuffCategoryOld
.
stacking_type: u8
Buff stacking behavior.
See BuffStackType
.
max_stacks: u16
Maximum amount of stacks.
duration_cap: u32
Maximum buff duration.
invulnerable: bool
Probably invulnerable.
invert: bool
Probably invert.
resistance: bool
Probably resistance.
Trait Implementations§
§impl<'de> Deserialize<'de> for BuffInfo
impl<'de> Deserialize<'de> for BuffInfo
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for BuffInfo
impl Serialize for BuffInfo
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryExtract for BuffInfo
impl TryExtract for BuffInfo
§fn can_extract(event: &Event) -> bool
fn can_extract(event: &Event) -> bool
Checks whether
Self
can be extracted from the event.§fn try_extract(event: &Event) -> Option<Self>
fn try_extract(event: &Event) -> Option<Self>
Attempts to extract
Self
from the combat event.Auto Trait Implementations§
impl Freeze for BuffInfo
impl RefUnwindSafe for BuffInfo
impl Send for BuffInfo
impl Sync for BuffInfo
impl Unpin for BuffInfo
impl UnwindSafe for BuffInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)