pub struct ColumnMapping {
pub name: String,
pub quantity: Option<Quantity>,
pub unit: Option<String>,
pub skip: bool,
}Expand description
What one column holds.
Fields§
§name: StringThe column’s name, as the header writes it, or as the caller names it.
quantity: Option<Quantity>What the column measures; None to keep its numbers as written
(Quantity::Unrecognized). Ignored for the clock.
unit: Option<String>The unit the values are written in, one of unit_spellings, such as ft or
m/s^2, in any case; None when ColumnMapping::quantity is None or
Quantity::Number.
skip: boolWhether the mapping leaves the column out, as cells beside a table that aren’t part of it: no channel is made of it, its cells only counted in the row’s width.
Trait Implementations§
Source§impl Clone for ColumnMapping
impl Clone for ColumnMapping
Source§fn clone(&self) -> ColumnMapping
fn clone(&self) -> ColumnMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnMapping
impl Debug for ColumnMapping
Source§impl<'de> Deserialize<'de> for ColumnMapping
impl<'de> Deserialize<'de> for ColumnMapping
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 ColumnMapping
impl JsonSchema for ColumnMapping
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 moreSource§impl PartialEq for ColumnMapping
impl PartialEq for ColumnMapping
Source§fn eq(&self, other: &ColumnMapping) -> bool
fn eq(&self, other: &ColumnMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColumnMapping
impl Serialize for ColumnMapping
impl StructuralPartialEq for ColumnMapping
Auto Trait Implementations§
impl Freeze for ColumnMapping
impl RefUnwindSafe for ColumnMapping
impl Send for ColumnMapping
impl Sync for ColumnMapping
impl Unpin for ColumnMapping
impl UnsafeUnpin for ColumnMapping
impl UnwindSafe for ColumnMapping
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