pub struct PasskeyLinkRequestBody {
pub authenticator_response: PasskeyLinkRequestBodyAuthenticatorResponse,
pub relying_party: Option<String>,
}Expand description
The request body for linking a passkey.
JSON schema
{
"title": "PasskeyLinkRequestBody",
"description": "The request body for linking a passkey.",
"type": "object",
"required": [
"authenticator_response"
],
"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": [
"attestation_object",
"client_data_json"
],
"properties": {
"attestation_object": {
"type": "string"
},
"authenticator_data": {
"type": "string"
},
"client_data_json": {
"type": "string"
},
"public_key": {
"type": "string"
},
"public_key_algorithm": {
"type": "number"
},
"transports": {
"type": "array",
"items": {}
}
}
},
"type": {
"type": "string",
"enum": [
"public-key"
]
}
}
},
"relying_party": {
"type": "string",
"format": "uri"
}
}
}Fields§
§authenticator_response: PasskeyLinkRequestBodyAuthenticatorResponse§relying_party: Option<String>Trait Implementations§
Source§impl Clone for PasskeyLinkRequestBody
impl Clone for PasskeyLinkRequestBody
Source§fn clone(&self) -> PasskeyLinkRequestBody
fn clone(&self) -> PasskeyLinkRequestBody
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 Debug for PasskeyLinkRequestBody
impl Debug for PasskeyLinkRequestBody
Source§impl<'de> Deserialize<'de> for PasskeyLinkRequestBody
impl<'de> Deserialize<'de> for PasskeyLinkRequestBody
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<&PasskeyLinkRequestBody> for PasskeyLinkRequestBody
impl From<&PasskeyLinkRequestBody> for PasskeyLinkRequestBody
Source§fn from(value: &PasskeyLinkRequestBody) -> Self
fn from(value: &PasskeyLinkRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyLinkRequestBody
impl RefUnwindSafe for PasskeyLinkRequestBody
impl Send for PasskeyLinkRequestBody
impl Sync for PasskeyLinkRequestBody
impl Unpin for PasskeyLinkRequestBody
impl UnsafeUnpin for PasskeyLinkRequestBody
impl UnwindSafe for PasskeyLinkRequestBody
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