pub struct Attribute {
pub id: AttributeId,
pub name: &'static str,
pub kind: &'static str,
pub access: Access,
pub qualities: AttributeQualities,
pub reporting: Reporting,
pub conform: Conform,
}Expand description
One attribute, as the specification defines it.
Fields§
§id: AttributeIdIts id.
name: &'static strIts name in the specification — “StartUpOnOff”.
kind: &'static strThe specification’s type name, verbatim — “uint16”, “StartUpOnOffEnum”,
list[TargetStruct]. Kept as text because what a Rust program does with it is the
handler’s business; the generated Rust type lives in the cluster’s own module.
Empty for the handful of attributes the specification lists with no type at all —
General Diagnostics’ DoNotUse, Door Lock’s SecurityLevel. Every one of them is
deprecated or disallowed: there is nothing to say what they were, and the conformance
already says they must not be there.
access: Access§7.6’s access column.
qualities: AttributeQualities§7.12’s qualities, minus the reporting policy.
reporting: ReportingWhether and how changes are reported.
conform: ConformWhen the attribute may or must be present.