pub struct PropertyReference {
pub property_identifier: PropertyIdentifier,
pub property_array_index: Option<u32>,
}Expand description
One property of an object, whole or one array element
(BACnetPropertyReference, Clause 21).
On the wire the property identifier is context tag [0] and the optional
Unsigned array index [1]. The codec is
bacnet_encoding::constructed::{encode_property_reference, decode_property_reference}.
Fields§
§property_identifier: PropertyIdentifierProperty being referred to.
property_array_index: Option<u32>Array element index; None refers to the whole property.
Trait Implementations§
Source§impl Clone for PropertyReference
impl Clone for PropertyReference
Source§impl Debug for PropertyReference
impl Debug for PropertyReference
impl Eq for PropertyReference
Source§impl From<PropertyReference> for AuditPropertyReference
PropertyReference narrows the optional array index to u32, while
Clause 21 leaves it an unconstrained Unsigned, so the Audit form keeps
every value the primitive layer supports and converting back can fail.
impl From<PropertyReference> for AuditPropertyReference
PropertyReference narrows the optional array index to u32, while
Clause 21 leaves it an unconstrained Unsigned, so the Audit form keeps
every value the primitive layer supports and converting back can fail.
Source§fn from(value: PropertyReference) -> Self
fn from(value: PropertyReference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropertyReference
impl PartialEq for PropertyReference
impl StructuralPartialEq for PropertyReference
Auto Trait Implementations§
impl Freeze for PropertyReference
impl RefUnwindSafe for PropertyReference
impl Send for PropertyReference
impl Sync for PropertyReference
impl Unpin for PropertyReference
impl UnsafeUnpin for PropertyReference
impl UnwindSafe for PropertyReference
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