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).
Trait Implementations§
Source§impl Clone for BACnetDeviceObjectPropertyReference
impl Clone for BACnetDeviceObjectPropertyReference
Source§fn clone(&self) -> BACnetDeviceObjectPropertyReference
fn clone(&self) -> BACnetDeviceObjectPropertyReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for BACnetDeviceObjectPropertyReference
impl PartialEq for BACnetDeviceObjectPropertyReference
Source§fn eq(&self, other: &BACnetDeviceObjectPropertyReference) -> bool
fn eq(&self, other: &BACnetDeviceObjectPropertyReference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BACnetDeviceObjectPropertyReference
impl StructuralPartialEq for BACnetDeviceObjectPropertyReference
Auto Trait Implementations§
impl Freeze for BACnetDeviceObjectPropertyReference
impl RefUnwindSafe for BACnetDeviceObjectPropertyReference
impl Send for BACnetDeviceObjectPropertyReference
impl Sync for BACnetDeviceObjectPropertyReference
impl Unpin for BACnetDeviceObjectPropertyReference
impl UnsafeUnpin for BACnetDeviceObjectPropertyReference
impl UnwindSafe for BACnetDeviceObjectPropertyReference
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more