pub struct PasskeyRegisterRequestBody {
pub authenticator_response: PasskeyRegisterRequestBodyAuthenticatorResponse,
pub relying_party: Option<String>,
}Expand description
The request body for registering a passkey.
JSON schema
{
"title": "PasskeyRegisterRequestBody",
"description": "The request body for registering 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: PasskeyRegisterRequestBodyAuthenticatorResponse§relying_party: Option<String>Trait Implementations§
Source§impl Clone for PasskeyRegisterRequestBody
impl Clone for PasskeyRegisterRequestBody
Source§fn clone(&self) -> PasskeyRegisterRequestBody
fn clone(&self) -> PasskeyRegisterRequestBody
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 PasskeyRegisterRequestBody
impl Debug for PasskeyRegisterRequestBody
Source§impl<'de> Deserialize<'de> for PasskeyRegisterRequestBody
impl<'de> Deserialize<'de> for PasskeyRegisterRequestBody
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<&PasskeyRegisterRequestBody> for PasskeyRegisterRequestBody
impl From<&PasskeyRegisterRequestBody> for PasskeyRegisterRequestBody
Source§fn from(value: &PasskeyRegisterRequestBody) -> Self
fn from(value: &PasskeyRegisterRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyRegisterRequestBody
impl RefUnwindSafe for PasskeyRegisterRequestBody
impl Send for PasskeyRegisterRequestBody
impl Sync for PasskeyRegisterRequestBody
impl Unpin for PasskeyRegisterRequestBody
impl UnsafeUnpin for PasskeyRegisterRequestBody
impl UnwindSafe for PasskeyRegisterRequestBody
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