#[non_exhaustive]pub struct PropertyMetadata {
pub property_identifier: PropertyIdentifier,
pub conformance: PropertyConformance,
pub presence_condition: Option<PropertyPresenceCondition>,
pub write_capability: PropertyWriteCapability,
}Expand description
Canonical metadata for one effective property row on a BACnet object.
A migrated object’s canonical set includes PROPERTY_LIST itself. The
legacy BACnetObject::property_list
projection omits that identifier, and the encoded BACnet Property_List
value additionally omits Object_Identifier, Object_Name, and Object_Type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.property_identifier: PropertyIdentifierThe standard property identifier.
conformance: PropertyConformanceThe base R, W, or O table classification.
presence_condition: Option<PropertyPresenceCondition>The reason a conditionally present row is implemented.
write_capability: PropertyWriteCapabilityThe write route implemented for this property.
Implementations§
Source§impl PropertyMetadata
impl PropertyMetadata
Sourcepub const fn new(
property_identifier: PropertyIdentifier,
conformance: PropertyConformance,
presence_condition: Option<PropertyPresenceCondition>,
write_capability: PropertyWriteCapability,
) -> Self
pub const fn new( property_identifier: PropertyIdentifier, conformance: PropertyConformance, presence_condition: Option<PropertyPresenceCondition>, write_capability: PropertyWriteCapability, ) -> Self
Construct one canonical metadata row.
This constructor is the stable construction path as the non-exhaustive metadata model gains conditions needed by later object migrations.
Trait Implementations§
Source§impl Clone for PropertyMetadata
impl Clone for PropertyMetadata
Source§fn clone(&self) -> PropertyMetadata
fn clone(&self) -> PropertyMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PropertyMetadata
Source§impl Debug for PropertyMetadata
impl Debug for PropertyMetadata
impl Eq for PropertyMetadata
Source§impl PartialEq for PropertyMetadata
impl PartialEq for PropertyMetadata
impl StructuralPartialEq for PropertyMetadata
Auto Trait Implementations§
impl Freeze for PropertyMetadata
impl RefUnwindSafe for PropertyMetadata
impl Send for PropertyMetadata
impl Sync for PropertyMetadata
impl Unpin for PropertyMetadata
impl UnsafeUnpin for PropertyMetadata
impl UnwindSafe for PropertyMetadata
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