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>,
}

Contains the information from a VSF1 file.

Fields

Date of VSF creation in format 'YYYMMDD'

List of texts.

List of localized texts.

List of units.

List of device templates.

List of packet templates.

Methods

impl SpecificationFile
[src]

Construct a new SpecificationFile from a byte slice of VSF1 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 Type by its ID.

Find a DeviceTemplate matching the self and peer addresses.

Find a PacketTemplate matching the self and peer addresses as well as the command.

Trait Implementations

impl Debug for SpecificationFile
[src]

Formats the value using the given formatter.