#[non_exhaustive]pub struct FabricDescriptor {
pub root_public_key: Vec<u8>,
pub vendor_id: u16,
pub fabric_id: u64,
pub node_id: u64,
pub label: String,
pub fabric_index: u8,
}Expand description
One fabric a device belongs to (a decoded FabricDescriptorStruct).
Parsed from the Fabrics attribute (0x0001) of the OperationalCredentials
cluster (0x003E). Unknown fields from the wire are silently ignored —
#[non_exhaustive] lets us add fields 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.root_public_key: Vec<u8>Fabric’s root public key (SEC1 uncompressed P-256, 65 bytes).
vendor_id: u16Vendor ID of the admin that created this fabric.
fabric_id: u6464-bit Fabric ID.
node_id: u64The device’s node ID on this fabric.
label: StringOperator-assigned label (may be empty).
fabric_index: u8The device-assigned fabric index (1-based, device-local).
Trait Implementations§
Source§impl Clone for FabricDescriptor
impl Clone for FabricDescriptor
Source§fn clone(&self) -> FabricDescriptor
fn clone(&self) -> FabricDescriptor
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 moreSource§impl Debug for FabricDescriptor
impl Debug for FabricDescriptor
impl Eq for FabricDescriptor
Source§impl PartialEq for FabricDescriptor
impl PartialEq for FabricDescriptor
impl StructuralPartialEq for FabricDescriptor
Auto Trait Implementations§
impl Freeze for FabricDescriptor
impl RefUnwindSafe for FabricDescriptor
impl Send for FabricDescriptor
impl Sync for FabricDescriptor
impl Unpin for FabricDescriptor
impl UnsafeUnpin for FabricDescriptor
impl UnwindSafe for FabricDescriptor
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