pub struct Stage {
pub id: String,
pub name: String,
pub components: Vec<Component>,
pub overrides: Overrides,
pub drag_override: Option<DragOverride>,
pub parallel: Option<ParallelStage>,
}Expand description
A stage: body components stacked from its forward end aft, on the airframe’s axis or, for a parallel stage, along each of its pods.
Fields§
§id: StringUnique id.
name: StringName.
components: Vec<Component>Body components (nose cones, body tubes, transitions), forward to aft.
overrides: OverridesOverrides for the whole stage without its motors, applied after every override inside it. A center-of-mass override is measured aft of the stage’s forward end.
drag_override: Option<DragOverride>A drag coefficient stated for the stage (DragOverride): added to the rocket’s drag, or,
covering its children, in place of everything in the stage.
parallel: Option<ParallelStage>Where the stage hangs beside the airframe, for a parallel stage; None for a stage on the
axis, which stacks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
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
Source§impl JsonSchema for Stage
impl JsonSchema for Stage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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