pub struct SORFile {
    pub map: MapBlock,
    pub general_parameters: Option<GeneralParametersBlock>,
    pub supplier_parameters: Option<SupplierParametersBlock>,
    pub fixed_parameters: Option<FixedParametersBlock>,
    pub key_events: Option<KeyEvents>,
    pub link_parameters: Option<LinkParameters>,
    pub data_points: Option<DataPoints>,
    pub proprietary_blocks: Vec<ProprietaryBlock>,
}
Expand description

SORFile describes a full SOR file. All blocks except MapBlock are Option types as we cannot guarantee the parser will find them, but many blocks are in fact mandatory in the specification so compliant files will provide them.

Fields

map: MapBlockgeneral_parameters: Option<GeneralParametersBlock>supplier_parameters: Option<SupplierParametersBlock>fixed_parameters: Option<FixedParametersBlock>key_events: Option<KeyEvents>link_parameters: Option<LinkParameters>data_points: Option<DataPoints>proprietary_blocks: Vec<ProprietaryBlock>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.