pub struct DiedEventIndividualKill {
pub killer_name: Option<String>,
pub killer_name_localized: Option<String>,
pub killer_ship: DiedEventKillerShip,
pub killer_rank: CombatRank,
}
Expand description
When the player is killed by someone. This can be either be players or NPCs like Thargoids. This is also fired when killed by an on-foot combattant.
Fields§
§killer_name: Option<String>
The name of the player’s killer. This might be None when killed by for example a Thargoid.
killer_name_localized: Option<String>
The localized name of the player’s killer, if any.
killer_ship: DiedEventKillerShip
The ship of the killer. This could be a ShipType, a ThargoidShip but importantly also a Citizen (yes even though it’s called a killer SHIP)
killer_rank: CombatRank
The rank of the killer.
Trait Implementations§
Source§impl Clone for DiedEventIndividualKill
impl Clone for DiedEventIndividualKill
Source§fn clone(&self) -> DiedEventIndividualKill
fn clone(&self) -> DiedEventIndividualKill
Returns a copy 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 DiedEventIndividualKill
impl Debug for DiedEventIndividualKill
Source§impl<'de> Deserialize<'de> for DiedEventIndividualKill
impl<'de> Deserialize<'de> for DiedEventIndividualKill
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 DiedEventIndividualKill
impl PartialEq for DiedEventIndividualKill
Source§impl Serialize for DiedEventIndividualKill
impl Serialize for DiedEventIndividualKill
impl StructuralPartialEq for DiedEventIndividualKill
Auto Trait Implementations§
impl Freeze for DiedEventIndividualKill
impl RefUnwindSafe for DiedEventIndividualKill
impl Send for DiedEventIndividualKill
impl Sync for DiedEventIndividualKill
impl Unpin for DiedEventIndividualKill
impl UnwindSafe for DiedEventIndividualKill
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