pub struct ActionStat {
pub spell_id: u32,
pub target_id: u32,
pub source_kind: i32,
pub source_id: u32,
pub pull_id: Option<u32>,
pub group_id: Option<u32>,
pub casts: u64,
pub direct_hits: u64,
pub crits: u64,
pub total_damage: f64,
}Expand description
Per-spell cast and damage stats.
Fields§
§spell_id: u32§target_id: u32§source_kind: i32§source_id: u32§pull_id: Option<u32>§group_id: Option<u32>§casts: u64§direct_hits: u64§crits: u64§total_damage: f64Trait Implementations§
Source§impl Clone for ActionStat
impl Clone for ActionStat
Source§fn clone(&self) -> ActionStat
fn clone(&self) -> ActionStat
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 ActionStat
impl Debug for ActionStat
Source§impl From<ActionStat> for JsValuewhere
ActionStat: Serialize,
impl From<ActionStat> for JsValuewhere
ActionStat: Serialize,
Source§fn from(value: ActionStat) -> Self
fn from(value: ActionStat) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &ActionStatwhere
ActionStat: Serialize,
impl IntoWasmAbi for &ActionStatwhere
ActionStat: Serialize,
Source§impl IntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
impl IntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
Source§impl OptionIntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
impl OptionIntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
Source§impl Serialize for ActionStat
impl Serialize for ActionStat
Source§impl Tsify for ActionStat
impl Tsify for ActionStat
const DECL: &'static str = "/**\n * Per-spell cast and damage stats.\n */\nexport interface ActionStat {\n spellId: number;\n targetId: number;\n sourceKind: number;\n sourceId: number;\n pullId: number | undefined;\n groupId: number | undefined;\n casts: number;\n directHits: number;\n crits: number;\n totalDamage: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
impl VectorIntoWasmAbi for ActionStatwhere
ActionStat: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for ActionStat
impl WasmDescribe for ActionStat
Source§impl WasmDescribeVector for ActionStat
impl WasmDescribeVector for ActionStat
Auto Trait Implementations§
impl Freeze for ActionStat
impl RefUnwindSafe for ActionStat
impl Send for ActionStat
impl Sync for ActionStat
impl Unpin for ActionStat
impl UnsafeUnpin for ActionStat
impl UnwindSafe for ActionStat
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.