pub struct CommitCrimeEvent {
pub crime_type: Crime,
pub faction: String,
pub fine: Option<u64>,
pub bounty: Option<u64>,
}Expand description
Fired when the player commits a crime.
Fields§
§crime_type: CrimeThe kind of crime the player committed.
faction: StringThe faction that the player has commited the crime to.
fine: Option<u64>The fine that needs to be paid for the crime.
bounty: Option<u64>The bounty that has been placed on the player for committing the crime.
Trait Implementations§
Source§impl Clone for CommitCrimeEvent
impl Clone for CommitCrimeEvent
Source§fn clone(&self) -> CommitCrimeEvent
fn clone(&self) -> CommitCrimeEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitCrimeEvent
impl Debug for CommitCrimeEvent
Source§impl<'de> Deserialize<'de> for CommitCrimeEvent
impl<'de> Deserialize<'de> for CommitCrimeEvent
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 CommitCrimeEvent
impl PartialEq for CommitCrimeEvent
Source§fn eq(&self, other: &CommitCrimeEvent) -> bool
fn eq(&self, other: &CommitCrimeEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommitCrimeEvent
impl Serialize for CommitCrimeEvent
impl StructuralPartialEq for CommitCrimeEvent
Auto Trait Implementations§
impl Freeze for CommitCrimeEvent
impl RefUnwindSafe for CommitCrimeEvent
impl Send for CommitCrimeEvent
impl Sync for CommitCrimeEvent
impl Unpin for CommitCrimeEvent
impl UnsafeUnpin for CommitCrimeEvent
impl UnwindSafe for CommitCrimeEvent
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