#[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
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 is_required(self) -> bool
pub const fn is_required(self) -> bool
Whether this effective row is required, including the rows intrinsic reporting, enabled Audit Reporting and command-source mechanisms require while retaining optional base table codes.
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.