#[non_exhaustive]pub struct CredentialsCreateOptions {
pub id: Option<String>,
pub user_handle: Option<String>,
pub private_key: Option<String>,
pub public_key: Option<String>,
}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.
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).
Trait Implementations§
Source§impl Clone for CredentialsCreateOptions
impl Clone for CredentialsCreateOptions
Source§fn clone(&self) -> CredentialsCreateOptions
fn clone(&self) -> CredentialsCreateOptions
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 CredentialsCreateOptions
impl Debug for CredentialsCreateOptions
Source§impl Default for CredentialsCreateOptions
impl Default for CredentialsCreateOptions
Source§fn default() -> CredentialsCreateOptions
fn default() -> CredentialsCreateOptions
Returns the “default value” for a type. Read more
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