#[non_exhaustive]pub struct Figure {
pub name: String,
pub written: String,
pub quantity: Option<Quantity>,
pub values: Vec<f64>,
}Expand description
A figure a file states once about its flight, such as a summary’s Max Altitude,2500.25 feet: kept as the file writes it, and in SI where its unit is known.
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.name: StringThe figure’s name as the file writes it, such as Max Altitude.
written: StringThe value as the file writes it, unit and all, its cells joined by commas, such as
2500.25 feet or -1.0000,0.0000,0.0000.
quantity: Option<Quantity>What the figure measures, which sets the unit of Figure::values; None for text, such
as a date, a time of day or a name, and Quantity::Unrecognized for numbers kept as
written, in a unit HPR Sim doesn’t know or that the figure’s name contradicts.
values: Vec<f64>The value in the quantity’s unit (Quantity::unit), one number for each the file
writes: three for a vector, such as a direction’s components along the logger’s axes;
empty for text. Every one a reader writes is finite: a NaN here would be written to JSON
as null, which doesn’t read back.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Figure
impl<'de> Deserialize<'de> for Figure
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 Figure
impl JsonSchema for Figure
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 more