Skip to main content

Choice

Type Alias Choice 

Source
pub type Choice = CosemDataType;
Expand description

CHOICE type — any COSEM data type (for value, status, etc.). This maintains backward compatibility with the generic CosemDataType.

Aliased Type§

pub enum Choice {
Show 14 variants Null, Array(Vec<CosemDataType>), Structure(Vec<CosemDataType>), Boolean(bool), Integer(i8), Long(i16), Unsigned(u8), LongUnsigned(u16), DoubleLong(i32), DoubleLongUnsigned(u32), OctetString(Vec<u8>), DateTime(Vec<u8>), BitString(Vec<u8>), Enum(u8),
}

Variants§

§

Null

null-data (tag 0).

§

Array(Vec<CosemDataType>)

array (tag 1) — a sequence of same-typed elements.

§

Structure(Vec<CosemDataType>)

structure (tag 2) — a sequence of (possibly differently typed) elements.

§

Boolean(bool)

boolean (tag 3).

§

Integer(i8)

integer — signed 8-bit (tag 15).

§

Long(i16)

long — signed 16-bit (tag 16).

§

Unsigned(u8)

unsigned — unsigned 8-bit (tag 17).

§

LongUnsigned(u16)

long-unsigned — unsigned 16-bit (tag 18).

§

DoubleLong(i32)

double-long — signed 32-bit (tag 5).

§

DoubleLongUnsigned(u32)

double-long-unsigned — unsigned 32-bit (tag 6).

§

OctetString(Vec<u8>)

octet-string (tag 9).

§

DateTime(Vec<u8>)

date-time (tag 25) — a 12-octet date-time value.

§

BitString(Vec<u8>)

bit-string (tag 4) — held as raw octets.

§

Enum(u8)

enum — an enumerated 8-bit value (tag 22).