pub struct PlayerHurtEvent {
pub user_id: u16,
pub health: u16,
pub attacker: u16,
pub damage_amount: u16,
pub custom: u16,
pub show_disguised_crit: bool,
pub crit: bool,
pub mini_crit: bool,
pub all_see_crit: bool,
pub weapon_id: u16,
pub bonus_effect: u8,
}
Fields§
§user_id: u16
§health: u16
§attacker: u16
§damage_amount: u16
§custom: u16
§show_disguised_crit: bool
§crit: bool
§mini_crit: bool
§all_see_crit: bool
§weapon_id: u16
§bonus_effect: u8
Trait Implementations§
Source§impl Clone for PlayerHurtEvent
impl Clone for PlayerHurtEvent
Source§fn clone(&self) -> PlayerHurtEvent
fn clone(&self) -> PlayerHurtEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PlayerHurtEvent
impl Debug for PlayerHurtEvent
Source§impl<'de> Deserialize<'de> for PlayerHurtEvent
impl<'de> Deserialize<'de> for PlayerHurtEvent
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 PartialEq for PlayerHurtEvent
impl PartialEq for PlayerHurtEvent
Source§impl Serialize for PlayerHurtEvent
impl Serialize for PlayerHurtEvent
impl StructuralPartialEq for PlayerHurtEvent
Auto Trait Implementations§
impl Freeze for PlayerHurtEvent
impl RefUnwindSafe for PlayerHurtEvent
impl Send for PlayerHurtEvent
impl Sync for PlayerHurtEvent
impl Unpin for PlayerHurtEvent
impl UnwindSafe for PlayerHurtEvent
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§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