#[non_exhaustive]pub enum Curve {
Embedded {
entry: String,
motor: Box<SolidMotor>,
},
Supplied {
digest: String,
from: String,
motor: Box<SolidMotor>,
},
Catalog {
motor_id: String,
simfile_id: String,
motor: Box<SolidMotor>,
},
Unresolved {
why: NoCurve,
reason: String,
},
}Expand description
Where a <motor> element’s thrust curve came from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Embedded
The archive’s own thrustcurves/<digest>.rse entry.
Fields
§
motor: Box<SolidMotor>The motor built from it.
Supplied
A curve the caller supplied for the motor’s digest (SuppliedCurves).
Fields
§
from: StringWhere the supplied curves came from (SuppliedCurves::source).
§
motor: Box<SolidMotor>The motor supplied.
Catalog
The bundled ThrustCurve.org catalog (Catalog::bundled).
Fields
§
motor: Box<SolidMotor>The motor built from it.
Unresolved
No curve, and why.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Curve
impl<'de> Deserialize<'de> for Curve
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 Curve
impl JsonSchema for Curve
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 Curve
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnsafeUnpin for Curve
impl UnwindSafe for Curve
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