#[non_exhaustive]pub struct DamageEvent {
pub spell_id: u32,
pub amount: f64,
pub is_crit: bool,
pub is_periodic: bool,
pub is_pet: bool,
pub time_ms: u32,
pub scope: TelemetryScope,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.spell_id: u32§amount: f64§is_crit: bool§is_periodic: bool§is_pet: bool§time_ms: u32§scope: TelemetryScopeImplementations§
Source§impl DamageEvent
impl DamageEvent
pub fn new( observation: DamageObservation, time_ms: u32, scope: TelemetryScope, ) -> Self
Trait Implementations§
Source§impl Clone for DamageEvent
impl Clone for DamageEvent
Source§fn clone(&self) -> DamageEvent
fn clone(&self) -> DamageEvent
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 moreAuto Trait Implementations§
impl Freeze for DamageEvent
impl RefUnwindSafe for DamageEvent
impl Send for DamageEvent
impl Sync for DamageEvent
impl Unpin for DamageEvent
impl UnsafeUnpin for DamageEvent
impl UnwindSafe for DamageEvent
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