pub struct PayFinesEvent {
pub amount: u64,
pub broker_percentage: Option<f32>,
pub all_fines: bool,
pub faction: Option<String>,
pub faction_localized: Option<String>,
pub ship_id: u64,
}
Expand description
Fired when the player pays off any outstanding fines.
Fields§
§amount: u64
The number of credits paid.
broker_percentage: Option<f32>
The percentage the broker took.
all_fines: bool
Whether all fines have been paid in one go.
faction: Option<String>
The faction the fines were paid at.
faction_localized: Option<String>
The localized name of the faction the fines were paid at.
ship_id: u64
The id current active ship.
Trait Implementations§
Source§impl Clone for PayFinesEvent
impl Clone for PayFinesEvent
Source§fn clone(&self) -> PayFinesEvent
fn clone(&self) -> PayFinesEvent
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 PayFinesEvent
impl Debug for PayFinesEvent
Source§impl<'de> Deserialize<'de> for PayFinesEvent
impl<'de> Deserialize<'de> for PayFinesEvent
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 PayFinesEvent
impl PartialEq for PayFinesEvent
Source§impl Serialize for PayFinesEvent
impl Serialize for PayFinesEvent
impl StructuralPartialEq for PayFinesEvent
Auto Trait Implementations§
impl Freeze for PayFinesEvent
impl RefUnwindSafe for PayFinesEvent
impl Send for PayFinesEvent
impl Sync for PayFinesEvent
impl Unpin for PayFinesEvent
impl UnwindSafe for PayFinesEvent
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