pub struct PasskeyAuthenticateRequestBody {
pub authenticator_response: PasskeyAuthenticateRequestBodyAuthenticatorResponse,
pub challenge: String,
pub relying_party: Option<String>,
}Expand description
The request body for authenticating a passkey.
JSON schema
{
"title": "PasskeyAuthenticateRequestBody",
"description": "The request body for authenticating a passkey.",
"type": "object",
"required": [
"authenticator_response",
"challenge"
],
"properties": {
"authenticator_response": {
"type": "object",
"required": [
"client_extension_results",
"id",
"raw_id",
"response",
"type"
],
"properties": {
"authenticator_attachment": {
"type": "string"
},
"client_extension_results": {
"type": "object",
"properties": {
"app_id": {
"type": "boolean"
},
"cred_props": {
"type": "object",
"properties": {
"rk": {
"type": "boolean"
}
}
},
"hmac_create_secret": {
"type": "boolean"
}
}
},
"id": {
"type": "string"
},
"raw_id": {
"type": "string"
},
"response": {
"type": "object",
"required": [
"authenticator_data",
"client_data_json",
"signature"
],
"properties": {
"authenticator_data": {
"type": "string"
},
"client_data_json": {
"type": "string"
},
"signature": {
"type": "string"
},
"user_handle": {
"type": "string"
}
}
},
"type": {
"type": "string",
"enum": [
"public-key"
]
}
}
},
"challenge": {
"type": "string"
},
"relying_party": {
"type": "string",
"format": "uri"
}
}
}Fields§
§authenticator_response: PasskeyAuthenticateRequestBodyAuthenticatorResponse§challenge: String§relying_party: Option<String>Trait Implementations§
Source§impl Clone for PasskeyAuthenticateRequestBody
impl Clone for PasskeyAuthenticateRequestBody
Source§fn clone(&self) -> PasskeyAuthenticateRequestBody
fn clone(&self) -> PasskeyAuthenticateRequestBody
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 PasskeyAuthenticateRequestBody
impl<'de> Deserialize<'de> for PasskeyAuthenticateRequestBody
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<&PasskeyAuthenticateRequestBody> for PasskeyAuthenticateRequestBody
impl From<&PasskeyAuthenticateRequestBody> for PasskeyAuthenticateRequestBody
Source§fn from(value: &PasskeyAuthenticateRequestBody) -> Self
fn from(value: &PasskeyAuthenticateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyAuthenticateRequestBody
impl RefUnwindSafe for PasskeyAuthenticateRequestBody
impl Send for PasskeyAuthenticateRequestBody
impl Sync for PasskeyAuthenticateRequestBody
impl Unpin for PasskeyAuthenticateRequestBody
impl UnsafeUnpin for PasskeyAuthenticateRequestBody
impl UnwindSafe for PasskeyAuthenticateRequestBody
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