pub enum ResolvedValue {
Show 15 variants
Null,
Boolean(bool),
Unsigned(u64),
Signed(i32),
Real(f32),
Double(f64),
OctetString(Vec<u8>),
CharacterString(String),
BitString(ResolvedBits),
Enumerated(ResolvedEnum),
Date(Date),
Time(Time),
ObjectIdentifier(ObjectIdentifier),
List(Vec<ResolvedValue>),
ApplicationData(Vec<u8>),
}Expand description
A decoded property value with every Enumerated promoted to its named enum.
This mirrors PropertyValue one-to-one, except that
PropertyValue::Enumerated’s bare u32 is replaced by a resolved
ResolvedEnum, and PropertyValue::BitString’s raw bytes by a resolved
ResolvedBits. Every other variant carries exactly the same data as its
PropertyValue counterpart. Build one with resolve_value.
Variants§
Null
Null value.
Boolean(bool)
Boolean value.
Unsigned(u64)
Unsigned integer (up to 64-bit for BACnet Unsigned64).
Signed(i32)
Signed integer.
Real(f32)
IEEE 754 single-precision float.
Double(f64)
IEEE 754 double-precision float.
OctetString(Vec<u8>)
Octet string (raw bytes).
CharacterString(String)
Character string (UTF-8).
BitString(ResolvedBits)
Bit string, resolved to its named bit-string type for the property.
Enumerated(ResolvedEnum)
Enumerated value, resolved to its named enumeration for the property.
Date(Date)
Date value.
Time(Time)
Time value.
ObjectIdentifier(ObjectIdentifier)
Object identifier.
List(Vec<ResolvedValue>)
A sequence (array) of resolved values.
ApplicationData(Vec<u8>)
Raw, already-encoded application-layer bytes (see
crate::primitives::PropertyValue::ApplicationData) — there is no
enum/bit-string naming for opaque context-tagged content, so it
carries through unchanged.