pub struct Profile { /* private fields */ }
Available on crate feature
setup
only.Expand description
YubiHSM 2 provisioning profile: a declarative profile specifying how a device should be (re)provisioned.
Implementations§
source§impl Profile
impl Profile
sourcepub fn setup_auth_key_id(self, key_id: Option<Id>) -> Self
pub fn setup_auth_key_id(self, key_id: Option<Id>) -> Self
Configure the auth key ID to use when performing device setup
sourcepub fn audit_option(self, value: AuditOption) -> Self
pub fn audit_option(self, value: AuditOption) -> Self
Enable mandatory consumption of the audit log. See:
https://docs.rs/yubihsm/latest/yubihsm/client/struct.Client.html#method.set_force_audit_option
sourcepub fn roles<I>(self, roles: I) -> Selfwhere
I: IntoIterator<Item = Role>,
pub fn roles<I>(self, roles: I) -> Selfwhere I: IntoIterator<Item = Role>,
Set the initial roles to provision
sourcepub fn wrap_keys<I>(self, keys: I) -> Selfwhere
I: IntoIterator<Item = Key>,
pub fn wrap_keys<I>(self, keys: I) -> Selfwhere I: IntoIterator<Item = Key>,
Set the wrap keys to initially provision
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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