pub struct ShipCargo {
pub capacity: u32,
pub units: u32,
pub inventory: Vec<ShipCargoItem>,
}Expand description
Ship cargo details.
Fields§
§capacity: u32The max number of items that can be stored in the cargo hold.
units: u32The number of items currently stored in the cargo hold.
inventory: Vec<ShipCargoItem>The items currently in the cargo hold.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShipCargo
impl<'de> Deserialize<'de> for ShipCargo
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 ShipCargo
Auto Trait Implementations§
impl Freeze for ShipCargo
impl RefUnwindSafe for ShipCargo
impl Send for ShipCargo
impl Sync for ShipCargo
impl Unpin for ShipCargo
impl UnwindSafe for ShipCargo
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