pub struct PasskeyAuthenticatorRegistrationOptions {
pub attestation: Option<String>,
pub authenticator_selection: Option<PasskeyAuthenticatorRegistrationOptionsAuthenticatorSelection>,
pub challenge: String,
pub exclude_credentials: Vec<PasskeyAuthenticatorRegistrationOptionsExcludeCredentialsItem>,
pub extensions: Option<PasskeyAuthenticatorRegistrationOptionsExtensions>,
pub pub_key_cred_params: Vec<PasskeyAuthenticatorRegistrationOptionsPubKeyCredParamsItem>,
pub rp: PasskeyAuthenticatorRegistrationOptionsRp,
pub timeout: Option<f64>,
pub user: PasskeyAuthenticatorRegistrationOptionsUser,
}Expand description
The passkey registration options.
JSON schema
{
"title": "PasskeyAuthenticatorRegistrationOptions",
"description": "The passkey registration options.",
"type": "object",
"required": [
"challenge",
"pub_key_cred_params",
"rp",
"user"
],
"properties": {
"attestation": {
"type": "string"
},
"authenticator_selection": {
"type": "object",
"properties": {
"authenticator_attachment": {
"type": "string"
},
"require_resident_key": {
"type": "boolean"
},
"resident_key": {
"type": "string"
},
"user_verification": {
"type": "string"
}
}
},
"challenge": {
"type": "string"
},
"exclude_credentials": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string"
},
"transports": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string"
}
}
}
},
"extensions": {
"type": "object",
"properties": {
"app_id": {
"type": "string"
},
"cred_props": {
"type": "object",
"properties": {
"rk": {
"type": "boolean"
}
}
},
"hmac_create_secret": {
"type": "boolean"
}
}
},
"pub_key_cred_params": {
"type": "array",
"items": {
"type": "object",
"required": [
"alg",
"type"
],
"properties": {
"alg": {
"type": "number"
},
"type": {
"type": "string",
"enum": [
"public-key"
]
}
}
}
},
"rp": {
"type": "object",
"required": [
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"timeout": {
"type": "number"
},
"user": {
"type": "object",
"required": [
"display_name",
"id",
"name"
],
"properties": {
"display_name": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
}
}Fields§
§attestation: Option<String>§authenticator_selection: Option<PasskeyAuthenticatorRegistrationOptionsAuthenticatorSelection>§challenge: String§exclude_credentials: Vec<PasskeyAuthenticatorRegistrationOptionsExcludeCredentialsItem>§extensions: Option<PasskeyAuthenticatorRegistrationOptionsExtensions>§pub_key_cred_params: Vec<PasskeyAuthenticatorRegistrationOptionsPubKeyCredParamsItem>§rp: PasskeyAuthenticatorRegistrationOptionsRp§timeout: Option<f64>§user: PasskeyAuthenticatorRegistrationOptionsUserTrait Implementations§
Source§impl Clone for PasskeyAuthenticatorRegistrationOptions
impl Clone for PasskeyAuthenticatorRegistrationOptions
Source§fn clone(&self) -> PasskeyAuthenticatorRegistrationOptions
fn clone(&self) -> PasskeyAuthenticatorRegistrationOptions
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 PasskeyAuthenticatorRegistrationOptions
impl<'de> Deserialize<'de> for PasskeyAuthenticatorRegistrationOptions
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<&PasskeyAuthenticatorRegistrationOptions> for PasskeyAuthenticatorRegistrationOptions
impl From<&PasskeyAuthenticatorRegistrationOptions> for PasskeyAuthenticatorRegistrationOptions
Source§fn from(value: &PasskeyAuthenticatorRegistrationOptions) -> Self
fn from(value: &PasskeyAuthenticatorRegistrationOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyAuthenticatorRegistrationOptions
impl RefUnwindSafe for PasskeyAuthenticatorRegistrationOptions
impl Send for PasskeyAuthenticatorRegistrationOptions
impl Sync for PasskeyAuthenticatorRegistrationOptions
impl Unpin for PasskeyAuthenticatorRegistrationOptions
impl UnwindSafe for PasskeyAuthenticatorRegistrationOptions
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