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<PasskeyAuthenticateRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PasskeyAuthenticateRequestBody, <__D as Deserializer<'de>>::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,
) -> PasskeyAuthenticateRequestBody
fn from( value: &PasskeyAuthenticateRequestBody, ) -> PasskeyAuthenticateRequestBody
Converts to this type from the input type.
Source§impl Serialize for PasskeyAuthenticateRequestBody
impl Serialize for PasskeyAuthenticateRequestBody
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 PasskeyAuthenticateRequestBody
impl RefUnwindSafe for PasskeyAuthenticateRequestBody
impl Send for PasskeyAuthenticateRequestBody
impl Sync for PasskeyAuthenticateRequestBody
impl Unpin 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