pub struct DamageData {
pub amount: Option<u64>,
pub InflictorWorldPos: Option<InflictorWorldPosData>,
pub victim_entity_index: Option<u64>,
}
Fields§
§amount: Option<u64>
§InflictorWorldPos: Option<InflictorWorldPosData>
§victim_entity_index: Option<u64>
Implementations§
Source§impl DamageData
impl DamageData
pub fn to_vec(&self) -> Vec<(&'static str, ProtobufValue)>
Trait Implementations§
Source§impl Clone for DamageData
impl Clone for DamageData
Source§fn clone(&self) -> DamageData
fn clone(&self) -> DamageData
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 moreAuto Trait Implementations§
impl Freeze for DamageData
impl RefUnwindSafe for DamageData
impl Send for DamageData
impl Sync for DamageData
impl Unpin for DamageData
impl UnwindSafe for DamageData
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