#[non_exhaustive]pub struct AclTarget {
pub cluster: Option<u32>,
pub endpoint: Option<u16>,
pub device_type: Option<u32>,
}Expand description
One ACL target (AccessControlTargetStruct, Matter spec §9.10.5.4).
Any field set to None is a wildcard: it matches any cluster, endpoint, or
device-type respectively.
#[non_exhaustive] so additional target fields from future spec revisions
can be added without a breaking change.
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.cluster: Option<u32>Target cluster id (None ⇒ all clusters).
endpoint: Option<u16>Target endpoint id (None ⇒ all endpoints).
device_type: Option<u32>Target device-type id (None ⇒ all device types).
Implementations§
Source§impl AclTarget
impl AclTarget
Sourcepub fn new(
cluster: Option<u32>,
endpoint: Option<u16>,
device_type: Option<u32>,
) -> Self
pub fn new( cluster: Option<u32>, endpoint: Option<u16>, device_type: Option<u32>, ) -> Self
Construct a target restricting to the given cluster / endpoint /
device-type. Any None is a wildcard for that dimension.
Provided because the struct is #[non_exhaustive] and so cannot be
built with a struct literal outside this crate.
Trait Implementations§
impl Eq for AclTarget
impl StructuralPartialEq for AclTarget
Auto Trait Implementations§
impl Freeze for AclTarget
impl RefUnwindSafe for AclTarget
impl Send for AclTarget
impl Sync for AclTarget
impl Unpin for AclTarget
impl UnsafeUnpin for AclTarget
impl UnwindSafe for AclTarget
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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