pub struct Fit {
pub name: Option<String>,
pub ship: Ship,
pub items: Vec<FitItem>,
pub character: Character,
pub environment: Environment,
pub incoming: Projection,
}Expand description
A ship, what is fitted to it, and the character flying it.
Fields§
§name: Option<String>Only for display; the calculation does not use it.
ship: ShipThe ship.
items: Vec<FitItem>Modules, drones, fighters, implants, boosters and cargo.
character: CharacterThe character flying the ship.
environment: EnvironmentWhere the ship is.
incoming: ProjectionWhat projections to apply on this fit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fit
impl<'de> Deserialize<'de> for Fit
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
Auto Trait Implementations§
impl Freeze for Fit
impl RefUnwindSafe for Fit
impl Send for Fit
impl Sync for Fit
impl Unpin for Fit
impl UnsafeUnpin for Fit
impl UnwindSafe for Fit
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