pub struct DeviceConfig {
pub namespace: Name,
pub storage: Option<PathBuf>,
pub factory_credential: FactoryCredential,
pub ca_prefix: Option<Name>,
pub renewal: RenewalPolicy,
pub delegate: Vec<Name>,
}Expand description
Configuration for zero-touch device provisioning.
Fields§
§namespace: NameThe NDN namespace this device should claim
(e.g. /com/acme/fleet/VIN-123456).
storage: Option<PathBuf>Persistent storage for keys and certificates. None = in-memory only.
factory_credential: FactoryCredentialFactory credential used for the first enrollment.
ca_prefix: Option<Name>CA prefix. None = derive from namespace (drop last component, append /CA).
renewal: RenewalPolicyAuto-renewal policy.
delegate: Vec<Name>Sub-namespaces to delegate after enrollment (e.g. ECU names under a vehicle namespace).
Auto Trait Implementations§
impl !Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
Blanket Implementations§
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