pub struct BACnetDeviceObjectPropertyReference {
pub object_identifier: ObjectIdentifier,
pub property_identifier: u32,
pub property_array_index: Option<u32>,
pub device_identifier: Option<ObjectIdentifier>,
}Expand description
Like BACnetObjectPropertyReference but may also specify a remote device.
When device_identifier is None, the reference is to an object in the
local device.
Fields§
§object_identifier: ObjectIdentifierThe object being referenced.
property_identifier: u32The property being referenced (PropertyIdentifier raw value).
property_array_index: Option<u32>Optional array index within the property.
device_identifier: Option<ObjectIdentifier>Optional device identifier (None = local device).
Implementations§
Source§impl BACnetDeviceObjectPropertyReference
impl BACnetDeviceObjectPropertyReference
Sourcepub fn new_local(
object_identifier: ObjectIdentifier,
property_identifier: u32,
) -> Self
pub fn new_local( object_identifier: ObjectIdentifier, property_identifier: u32, ) -> Self
Create a local-device reference without an array index.
Sourcepub fn new_remote(
object_identifier: ObjectIdentifier,
property_identifier: u32,
device_identifier: ObjectIdentifier,
) -> Self
pub fn new_remote( object_identifier: ObjectIdentifier, property_identifier: u32, device_identifier: ObjectIdentifier, ) -> Self
Create a remote-device reference without an array index.
Sourcepub fn with_index(self, array_index: u32) -> Self
pub fn with_index(self, array_index: u32) -> Self
Create a reference with an array index (may be local or remote).
Sourcepub fn device_identifier_is_device(&self) -> bool
pub fn device_identifier_is_device(&self) -> bool
Whether the device identifier is absent or names a Device object,
the rule BACnetDeviceObjectReference::device_identifier_is_device
applies to that type’s device member.
Sourcepub fn is_unset(&self) -> bool
pub fn is_unset(&self) -> bool
Whether the reference names nothing: its object, or its Device when it has one, is at the reserved instance 4194303 (Clause 12.1), the rule Clause 12.30.11 gives an empty Trend Log Multiple element. A property of this type has no empty encoding, so the stack serves an unset one in this form (#1417).