pub struct PasskeyAuthenticatorAuthenticationOptions {
pub allow_credentials: Vec<PasskeyAuthenticatorAuthenticationOptionsAllowCredentialsItem>,
pub challenge: String,
pub extensions: Option<PasskeyAuthenticatorAuthenticationOptionsExtensions>,
pub rp_id: Option<String>,
pub timeout: Option<f64>,
pub user_verification: Option<String>,
}Expand description
The passkey authentication options.
JSON schema
{
"title": "PasskeyAuthenticatorAuthenticationOptions",
"description": "The passkey authentication options.",
"type": "object",
"required": [
"challenge"
],
"properties": {
"allow_credentials": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string"
},
"transports": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string"
}
}
}
},
"challenge": {
"type": "string"
},
"extensions": {
"type": "object",
"properties": {
"app_id": {
"type": "string"
},
"cred_props": {
"type": "boolean"
},
"hmac_create_secret": {
"type": "boolean"
}
}
},
"rp_id": {
"type": "string"
},
"timeout": {
"type": "number"
},
"user_verification": {
"type": "string"
}
}
}Fields§
§allow_credentials: Vec<PasskeyAuthenticatorAuthenticationOptionsAllowCredentialsItem>§challenge: String§extensions: Option<PasskeyAuthenticatorAuthenticationOptionsExtensions>§rp_id: Option<String>§timeout: Option<f64>§user_verification: Option<String>Trait Implementations§
Source§impl Clone for PasskeyAuthenticatorAuthenticationOptions
impl Clone for PasskeyAuthenticatorAuthenticationOptions
Source§fn clone(&self) -> PasskeyAuthenticatorAuthenticationOptions
fn clone(&self) -> PasskeyAuthenticatorAuthenticationOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 PasskeyAuthenticatorAuthenticationOptions
impl<'de> Deserialize<'de> for PasskeyAuthenticatorAuthenticationOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PasskeyAuthenticatorAuthenticationOptions> for PasskeyAuthenticatorAuthenticationOptions
impl From<&PasskeyAuthenticatorAuthenticationOptions> for PasskeyAuthenticatorAuthenticationOptions
Source§fn from(value: &PasskeyAuthenticatorAuthenticationOptions) -> Self
fn from(value: &PasskeyAuthenticatorAuthenticationOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyAuthenticatorAuthenticationOptions
impl RefUnwindSafe for PasskeyAuthenticatorAuthenticationOptions
impl Send for PasskeyAuthenticatorAuthenticationOptions
impl Sync for PasskeyAuthenticatorAuthenticationOptions
impl Unpin for PasskeyAuthenticatorAuthenticationOptions
impl UnwindSafe for PasskeyAuthenticatorAuthenticationOptions
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