Struct resol_vbus::specification_file::SpecificationFile[][src]

pub struct SpecificationFile {
    pub datecode: i32,
    pub texts: Vec<String>,
    pub localized_texts: Vec<LocalizedText>,
    pub units: Vec<Unit>,
    pub device_templates: Vec<DeviceTemplate>,
    pub packet_templates: Vec<PacketTemplate>,
}
Expand description

Contains the information from a VSF1 file.

Fields

datecode: i32

Date of VSF creation in format ‘YYYMMDD’

texts: Vec<String>

List of texts.

localized_texts: Vec<LocalizedText>

List of localized texts.

units: Vec<Unit>

List of units.

device_templates: Vec<DeviceTemplate>

List of device templates.

packet_templates: Vec<PacketTemplate>

List of packet templates.

Implementations

Construct a new SpecificationFile from a byte slice of VSF1 data.

Construct a new SpecificationFile from the embedded default VSF data.

Get text by its index.

Get localized text by its index and language.

Get UnitFamily by its ID.

Get Unit by its index.

Get Unit by unit code.

Get Type by its ID.

Find a DeviceTemplate matching the self and peer addresses.

Find a PacketTemplate matching the destination and source addresses as well as the command.

Convert a value from one Unit to another.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.