#[non_exhaustive]pub struct CredentialsCreateOptions {
pub id: Option<String>,
pub user_handle: Option<String>,
pub private_key: Option<String>,
pub public_key: Option<String>,
pub sign_count: Option<u32>,
}Expand description
Optional fields for Credentials::create. When omitted, the authenticator
generates them.
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.id: Option<String>Explicit base64url credential ID.
user_handle: Option<String>Base64url user handle to associate.
private_key: Option<String>Base64url PKCS#8 private key to import.
public_key: Option<String>Base64url public key to import.
sign_count: Option<u32>Initial signature counter. The authenticator starts at 0 otherwise.
Implementations§
Source§impl CredentialsCreateOptions
impl CredentialsCreateOptions
Sourcepub fn user_handle(self, user_handle: impl Into<String>) -> Self
pub fn user_handle(self, user_handle: impl Into<String>) -> Self
Set the user handle.
Sourcepub fn private_key(self, private_key: impl Into<String>) -> Self
pub fn private_key(self, private_key: impl Into<String>) -> Self
Import a specific private key (base64url PKCS#8).
Sourcepub fn public_key(self, public_key: impl Into<String>) -> Self
pub fn public_key(self, public_key: impl Into<String>) -> Self
Import a specific public key (base64url).
Sourcepub fn sign_count(self, sign_count: u32) -> Self
pub fn sign_count(self, sign_count: u32) -> Self
Start the signature counter at sign_count.
Trait Implementations§
Source§impl Clone for CredentialsCreateOptions
impl Clone for CredentialsCreateOptions
Source§impl Debug for CredentialsCreateOptions
impl Debug for CredentialsCreateOptions
Auto Trait Implementations§
impl Freeze for CredentialsCreateOptions
impl RefUnwindSafe for CredentialsCreateOptions
impl Send for CredentialsCreateOptions
impl Sync for CredentialsCreateOptions
impl Unpin for CredentialsCreateOptions
impl UnsafeUnpin for CredentialsCreateOptions
impl UnwindSafe for CredentialsCreateOptions
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