#[non_exhaustive]pub struct ReadPath {
pub endpoint: Option<u16>,
pub cluster: Option<u32>,
pub attribute: Option<u32>,
}Expand description
A read-request attribute path with optional (wildcard) components. A None
field is omitted from the encoded AttributePathIB, which the Matter IM
interprets as a wildcard (Appendix A.6): omit attribute → all attributes of
the cluster; omit endpoint → all endpoints; etc. Responses are always keyed
by a concrete AttributePath.
#[non_exhaustive]: a read/subscribe path may gain optional spec components
(e.g. a data-version filter); marking it keeps such additions non-breaking.
Build via ReadPath::concrete / ReadPath::cluster / ReadPath::all
/ ReadPath::new.
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.endpoint: Option<u16>Endpoint, or None for all endpoints.
cluster: Option<u32>Cluster, or None for all clusters.
attribute: Option<u32>Attribute, or None for all attributes.
Implementations§
Source§impl ReadPath
impl ReadPath
Sourcepub fn new(
endpoint: Option<u16>,
cluster: Option<u32>,
attribute: Option<u32>,
) -> Self
pub fn new( endpoint: Option<u16>, cluster: Option<u32>, attribute: Option<u32>, ) -> Self
A read path from raw optional components (a None component is a
wildcard). Prefer Self::concrete / Self::cluster / Self::all
for the common shapes.