pub struct PasskeyInitLinkResponseBody {
pub options: PasskeyInitLinkResponseBodyOptions,
pub relying_party: Option<String>,
}Expand description
The response body for initiating a passkey link ceremony.
JSON schema
{
"title": "PasskeyInitLinkResponseBody",
"description": "The response body for initiating a passkey link
ceremony.",
"type": "object",
"required": [
"options"
],
"properties": {
"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"
}
}
}
}
},
"relying_party": {
"type": "string",
"format": "uri"
}
}
}Fields§
§options: PasskeyInitLinkResponseBodyOptions§relying_party: Option<String>Trait Implementations§
Source§impl Clone for PasskeyInitLinkResponseBody
impl Clone for PasskeyInitLinkResponseBody
Source§fn clone(&self) -> PasskeyInitLinkResponseBody
fn clone(&self) -> PasskeyInitLinkResponseBody
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 PasskeyInitLinkResponseBody
impl Debug for PasskeyInitLinkResponseBody
Source§impl<'de> Deserialize<'de> for PasskeyInitLinkResponseBody
impl<'de> Deserialize<'de> for PasskeyInitLinkResponseBody
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<&PasskeyInitLinkResponseBody> for PasskeyInitLinkResponseBody
impl From<&PasskeyInitLinkResponseBody> for PasskeyInitLinkResponseBody
Source§fn from(value: &PasskeyInitLinkResponseBody) -> Self
fn from(value: &PasskeyInitLinkResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PasskeyInitLinkResponseBody
impl RefUnwindSafe for PasskeyInitLinkResponseBody
impl Send for PasskeyInitLinkResponseBody
impl Sync for PasskeyInitLinkResponseBody
impl Unpin for PasskeyInitLinkResponseBody
impl UnsafeUnpin for PasskeyInitLinkResponseBody
impl UnwindSafe for PasskeyInitLinkResponseBody
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