pub struct CarrierFinance {
pub carrier_balance: i64,
pub reserve_balance: u64,
pub available_balance: i64,
pub reserve_percent: f32,
pub tax_rate_rearm: f32,
pub tax_rate_refuel: u64,
pub tax_rate_repair: u64,
}
Expand description
Financial details for a given fleet carrier.
Fields§
§carrier_balance: i64
The current balance of the carrier in credits. Note that this can be negative if the carrier is in debt.
reserve_balance: u64
The reserve balance of the carrier in credits reserved for weekly upkeep.
available_balance: i64
The total available balance of the carrier in credits. This balance may be used for active buy orders. Note that this can be negative if the carrier is in debt.
reserve_percent: f32
The percentage of the available balance that is reserved for weekly upkeep.
tax_rate_rearm: f32
The tariff rate for re-arming at the carrier.
tax_rate_refuel: u64
The tariff rate for refueling at the carrier.
tax_rate_repair: u64
The tariff rate for repairing at the carrier.
Trait Implementations§
Source§impl Clone for CarrierFinance
impl Clone for CarrierFinance
Source§fn clone(&self) -> CarrierFinance
fn clone(&self) -> CarrierFinance
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 CarrierFinance
impl Debug for CarrierFinance
Source§impl<'de> Deserialize<'de> for CarrierFinance
impl<'de> Deserialize<'de> for CarrierFinance
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 CarrierFinance
impl PartialEq for CarrierFinance
Source§impl Serialize for CarrierFinance
impl Serialize for CarrierFinance
impl StructuralPartialEq for CarrierFinance
Auto Trait Implementations§
impl Freeze for CarrierFinance
impl RefUnwindSafe for CarrierFinance
impl Send for CarrierFinance
impl Sync for CarrierFinance
impl Unpin for CarrierFinance
impl UnwindSafe for CarrierFinance
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