pub struct ShipFuel {
pub current: u32,
pub capacity: u32,
pub consumed: Option<ShipFuelConsumed>,
}Expand description
Details of the ship’s fuel tanks including how much fuel was consumed during the last transit or action.
Fields§
§current: u32The current amount of fuel in the ship’s tanks.
capacity: u32The maximum amount of fuel the ship’s tanks can hold.
consumed: Option<ShipFuelConsumed>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShipFuel
impl<'de> Deserialize<'de> for ShipFuel
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
impl StructuralPartialEq for ShipFuel
Auto Trait Implementations§
impl Freeze for ShipFuel
impl RefUnwindSafe for ShipFuel
impl Send for ShipFuel
impl Sync for ShipFuel
impl Unpin for ShipFuel
impl UnwindSafe for ShipFuel
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