#[non_exhaustive]pub struct MotorConfiguration {
pub id: String,
pub name: String,
pub default: bool,
pub declared: bool,
pub inactive_stages: Vec<Option<u32>>,
pub motors: Vec<OrkMotor>,
pub unread: Vec<UnreadMotor>,
pub left_out: Option<LeftOut>,
pub staging: Option<Staging>,
pub later_stagings: Vec<Staging>,
}Expand description
A motor configuration: what the rocket declares, and every motor the mounts put in it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Stringconfigid.
name: String<name>, which may be empty.
default: boolWhether the file marks it default="true".
declared: boolWhether <rocket> declares it; one only a mount names is read all the same.
inactive_stages: Vec<Option<u32>>The <stage number>s the configuration marks active="false"; None for one whose number
is missing or not a count, which is switched off all the same.
motors: Vec<OrkMotor>Its motors, in the order their mounts appear in the file.
unread: Vec<UnreadMotor>Its motors in parts hpr does not read.
left_out: Option<LeftOut>Why it is not among the rocket’s configurations, or None when it is.
staging: Option<Staging>The separation it flies first, for one among the rocket’s configurations that has one
(staging): powered, or with nothing ahead of it left to burn, its only one. The rocket’s configuration does not carry it: give it to the flight
(hpr::ork::separations maps Self::stagings onto the flight’s), with a recovery device
on each part.
later_stagings: Vec<Staging>The powered separations it flies after Self::staging, in the order they fire, each
further forward: a three-stage rocket’s middle stage dropping as its sustainer lights.
Empty for one with one separation or none.
Implementations§
Source§impl MotorConfiguration
impl MotorConfiguration
Sourcepub fn stagings(&self) -> impl Iterator<Item = &Staging>
pub fn stagings(&self) -> impl Iterator<Item = &Staging>
Every separation it flies, in the order they fire: Self::staging, then
Self::later_stagings.
Trait Implementations§
Source§impl Clone for MotorConfiguration
impl Clone for MotorConfiguration
Source§fn clone(&self) -> MotorConfiguration
fn clone(&self) -> MotorConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MotorConfiguration
impl Debug for MotorConfiguration
Source§impl<'de> Deserialize<'de> for MotorConfiguration
impl<'de> Deserialize<'de> for MotorConfiguration
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>,
Source§impl JsonSchema for MotorConfiguration
impl JsonSchema for MotorConfiguration
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for MotorConfiguration
impl PartialEq for MotorConfiguration
Source§fn eq(&self, other: &MotorConfiguration) -> bool
fn eq(&self, other: &MotorConfiguration) -> bool
self and other values to be equal, and is used by ==.