pub struct ShipMount {
pub symbol: Symbol,
pub name: String,
pub description: Option<String>,
pub strength: Option<i32>,
pub deposits: Option<Vec<Deposits>>,
pub requirements: Box<ShipRequirements>,
}Expand description
ShipMount : A mount is installed on the exterier of a ship.
Fields§
§symbol: SymbolSymbo of this mount.
name: StringName of this mount.
description: Option<String>Description of this mount.
strength: Option<i32>Mounts that have this value, such as mining lasers, denote how powerful this mount’s capabilities are.
deposits: Option<Vec<Deposits>>Mounts that have this value denote what goods can be produced from using the mount.
requirements: Box<ShipRequirements>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShipMount
impl<'de> Deserialize<'de> for ShipMount
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 ShipMount
Auto Trait Implementations§
impl Freeze for ShipMount
impl RefUnwindSafe for ShipMount
impl Send for ShipMount
impl Sync for ShipMount
impl Unpin for ShipMount
impl UnwindSafe for ShipMount
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