pub struct PasskeyAuthenticatorEnrollmentOptions {
pub attestation: Option<String>,
pub authenticator_selection: Option<PasskeyAuthenticatorSelection>,
pub challenge: String,
pub exclude_credentials: Vec<PasskeyCredentialDescriptor>,
pub extensions: Option<PasskeyEnrollmentExtensions>,
pub pub_key_cred_params: Vec<PasskeyPubKeyCredParam>,
pub rp: PasskeyRelyingParty,
pub timeout: Option<f64>,
pub user: PasskeyUser,
}Expand description
WebAuthn registration options as defined by the Web Authentication specification.
JSON schema
{
"title": "PasskeyAuthenticatorEnrollmentOptions",
"description": "WebAuthn registration options as defined by the Web
Authentication specification.",
"type": "object",
"required": [
"challenge",
"pub_key_cred_params",
"rp",
"user"
],
"properties": {
"attestation": {
"type": "string"
},
"authenticator_selection": {
"$ref": "#/components/schemas/PasskeyAuthenticatorSelection"
},
"challenge": {
"type": "string"
},
"exclude_credentials": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PasskeyCredentialDescriptor"
}
},
"extensions": {
"$ref": "#/components/schemas/PasskeyEnrollmentExtensions"
},
"pub_key_cred_params": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PasskeyPubKeyCredParam"
}
},
"rp": {
"$ref": "#/components/schemas/PasskeyRelyingParty"
},
"timeout": {
"type": "number"
},
"user": {
"$ref": "#/components/schemas/PasskeyUser"
}
},
"x-stainless-model":
"client_auth.passkey_authenticator_enrollment_options"
}Fields§
§attestation: Option<String>§authenticator_selection: Option<PasskeyAuthenticatorSelection>§challenge: String§exclude_credentials: Vec<PasskeyCredentialDescriptor>§extensions: Option<PasskeyEnrollmentExtensions>§pub_key_cred_params: Vec<PasskeyPubKeyCredParam>§rp: PasskeyRelyingParty§timeout: Option<f64>§user: PasskeyUserTrait Implementations§
Source§impl Clone for PasskeyAuthenticatorEnrollmentOptions
impl Clone for PasskeyAuthenticatorEnrollmentOptions
Source§fn clone(&self) -> PasskeyAuthenticatorEnrollmentOptions
fn clone(&self) -> PasskeyAuthenticatorEnrollmentOptions
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<'de> Deserialize<'de> for PasskeyAuthenticatorEnrollmentOptions
impl<'de> Deserialize<'de> for PasskeyAuthenticatorEnrollmentOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasskeyAuthenticatorEnrollmentOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasskeyAuthenticatorEnrollmentOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PasskeyAuthenticatorEnrollmentOptions> for PasskeyAuthenticatorEnrollmentOptions
impl From<&PasskeyAuthenticatorEnrollmentOptions> for PasskeyAuthenticatorEnrollmentOptions
Source§fn from(
value: &PasskeyAuthenticatorEnrollmentOptions,
) -> PasskeyAuthenticatorEnrollmentOptions
fn from( value: &PasskeyAuthenticatorEnrollmentOptions, ) -> PasskeyAuthenticatorEnrollmentOptions
Converts to this type from the input type.
Source§impl Serialize for PasskeyAuthenticatorEnrollmentOptions
impl Serialize for PasskeyAuthenticatorEnrollmentOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PasskeyAuthenticatorEnrollmentOptions
impl RefUnwindSafe for PasskeyAuthenticatorEnrollmentOptions
impl Send for PasskeyAuthenticatorEnrollmentOptions
impl Sync for PasskeyAuthenticatorEnrollmentOptions
impl Unpin for PasskeyAuthenticatorEnrollmentOptions
impl UnsafeUnpin for PasskeyAuthenticatorEnrollmentOptions
impl UnwindSafe for PasskeyAuthenticatorEnrollmentOptions
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