#[non_exhaustive]pub struct FabricConfig {
pub fabric_id: u64,
pub rcac_id: u64,
pub commissioner_node_id: u64,
pub validity: (MatterTime, MatterTime),
pub issue_icac: bool,
}Expand description
Inputs for creating a new fabric.
#[non_exhaustive]: future fabric-creation knobs (e.g. an explicit IPK or
an ICAC tier) can be added without a semver break. Construct via
FabricConfig::new from outside this crate.
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.fabric_id: u64Matter fabric identifier (spec §6.2.1).
rcac_id: u64RCAC subject DN’s rcac-id value.
commissioner_node_id: u64The stable node ID the controller takes on this fabric.
validity: (MatterTime, MatterTime)(not_before, not_after) validity for the RCAC and commissioner NOC.
issue_icac: boolWhen true, create_fabric mints an intermediate CA (ICAC) under
the RCAC and signs the commissioner NOC (and, later, all NOCs
issued on this fabric) under the ICAC instead of directly under the
RCAC. Defaults to false (the flat RCAC->NOC path) via
FabricConfig::new.
Implementations§
Source§impl FabricConfig
impl FabricConfig
Sourcepub fn new(
fabric_id: u64,
rcac_id: u64,
commissioner_node_id: u64,
validity: (MatterTime, MatterTime),
) -> Self
pub fn new( fabric_id: u64, rcac_id: u64, commissioner_node_id: u64, validity: (MatterTime, MatterTime), ) -> Self
Construct a fabric configuration.
This is the supported construction path now that FabricConfig is
#[non_exhaustive]; the public fields remain readable/writable in
place.
Trait Implementations§
Source§impl Clone for FabricConfig
impl Clone for FabricConfig
Source§fn clone(&self) -> FabricConfig
fn clone(&self) -> FabricConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more