pub struct Mapping {
pub header_line: Option<usize>,
pub separator: char,
pub decimal_comma: bool,
pub clock: usize,
pub primary: Option<usize>,
pub columns: Vec<ColumnMapping>,
pub clock_wrap: Option<f64>,
pub rows: RowForm,
}Expand description
Fields§
§header_line: Option<usize>The header row’s line, from 1; None for a file with no header row, whose rows start at
its first line that isn’t blank or a # comment.
separator: charThe character between cells.
decimal_comma: boolWhether a comma in a cell is the decimal mark, as 1,5 for 1.5; only where the separator
isn’t a comma. Either way, a cell in the other mark is no number (module docs, Rows).
clock: usizeThe clock’s column, from 0. Its ColumnMapping::unit must be a unit of time.
primary: Option<usize>The primary track’s column, from 0: the barometric altitude above the pad, which becomes
FlightLog::altitude_m on the clock, FlightLog::time_s (module docs, The record).
Its quantity must be Quantity::AltitudeAboveGround. None for a table that has none,
or doesn’t say which; the header never says, so mapping returns None.
columns: Vec<ColumnMapping>Every column, in the file’s order.
clock_wrap: Option<f64>The count the clock turns over at, in its unit, for a logger’s counter that runs over,
such as 2³² microseconds; None for a clock that doesn’t (module docs, A column
mapping).
rows: RowFormHow each row is written: plain cells, unless the mapping says otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mapping
impl<'de> Deserialize<'de> for Mapping
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 Mapping
impl JsonSchema for Mapping
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