pub enum Position {
Top {
aft_offset_m: f64,
},
Middle {
aft_offset_m: f64,
},
Bottom {
aft_offset_m: f64,
},
After {
aft_offset_m: f64,
},
Absolute {
station_m: f64,
},
}Expand description
Where an attached part sits along its parent. Offsets are positive aft.
Variants§
Top
The part’s forward end is aft_offset_m aft of the parent’s forward end.
Middle
The part’s middle is aft_offset_m aft of the parent’s middle.
Bottom
The part’s aft end is aft_offset_m aft of the parent’s aft end.
After
The part’s forward end is aft_offset_m aft of the previous sibling’s aft end, or of the
parent’s forward end for the first child.
Absolute
The part’s forward end is at station station_m, measured aft of the nose tip.
Trait Implementations§
impl Copy for Position
Source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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 Position
impl JsonSchema for Position
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 Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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