pub enum MemberDatatype {
Show 16 variants
Unknown,
Boolean,
Unsigned,
Integer,
Real,
Double,
OctetString,
CharacterString,
BitString,
Enumerated,
Date,
Time,
ObjectIdentifier,
LightingCommand,
ColorCommand,
XyColor,
}Expand description
The datatype of a Channel member’s property, as Table 12-63’s columns name them.
Variants§
Unknown
Not known: any primitive value passes on unchanged.
Boolean
BOOLEAN.
Unsigned
Unsigned.
Integer
INTEGER.
Real
REAL.
Double
Double.
OctetString
OCTET STRING.
CharacterString
CharacterString.
BitString
BIT STRING.
Enumerated
ENUMERATED.
Date
Date.
Time
Time.
ObjectIdentifier
BACnetObjectIdentifier.
LightingCommand
BACnetLightingCommand.
ColorCommand
BACnetColorCommand (Addendum 135-2020ca).
XyColor
BACnetxyColor (Addendum 135-2020ca).
Implementations§
Source§impl MemberDatatype
impl MemberDatatype
Sourcepub fn of(
object_type: ObjectType,
property: PropertyIdentifier,
current: Option<&PropertyValue>,
) -> Self
pub fn of( object_type: ObjectType, property: PropertyIdentifier, current: Option<&PropertyValue>, ) -> Self
The datatype of member property property of an object of type
object_type, whose value is current (None when it can’t be
read).
A few properties have a constructed datatype whatever form the object
keeps them in: Lighting_Command is a BACnetLightingCommand,
Color_Command a BACnetColorCommand, and Default_Color and a Color
object’s Present_Value and Tracking_Value a BACnetxyColor. Any other
property takes the datatype of the primitive it holds; NULL,
constructed values and unreadable properties are
MemberDatatype::Unknown.