pub struct CrimeVictimEvent {
pub offender: String,
pub crime_type: Crime,
pub fine: Option<u64>,
pub bounty: Option<u64>,
}
Expand description
Fired when the player is the target of a crime.
Fields§
§offender: String
The name of the one that has commited the crime against the player.
crime_type: Crime
The crime committed against the player.
fine: Option<u64>
The fine that was dealt.
bounty: Option<u64>
The bounty that was placed.
Trait Implementations§
Source§impl Clone for CrimeVictimEvent
impl Clone for CrimeVictimEvent
Source§fn clone(&self) -> CrimeVictimEvent
fn clone(&self) -> CrimeVictimEvent
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 CrimeVictimEvent
impl Debug for CrimeVictimEvent
Source§impl<'de> Deserialize<'de> for CrimeVictimEvent
impl<'de> Deserialize<'de> for CrimeVictimEvent
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 CrimeVictimEvent
impl PartialEq for CrimeVictimEvent
Source§impl Serialize for CrimeVictimEvent
impl Serialize for CrimeVictimEvent
impl StructuralPartialEq for CrimeVictimEvent
Auto Trait Implementations§
impl Freeze for CrimeVictimEvent
impl RefUnwindSafe for CrimeVictimEvent
impl Send for CrimeVictimEvent
impl Sync for CrimeVictimEvent
impl Unpin for CrimeVictimEvent
impl UnwindSafe for CrimeVictimEvent
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