pub struct AuthenticateBody {
pub encryption_type: Option<AuthenticateBodyEncryptionType>,
pub recipient_public_key: Option<String>,
pub user_jwt: String,
}Expand description
AuthenticateBody
JSON schema
{
"examples": [
{
"encryption_type": "HPKE",
"recipient_public_key":
"DAQcDQgAEx4aoeD72yykviK+fckqE2CItVIGn1rCnvCXZ1HgpOcMEMialRmTrqIK4oZlYd1"
,
"user_jwt":
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.
KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"
}
],
"type": "object",
"required": [
"user_jwt"
],
"properties": {
"encryption_type": {
"description": "The encryption type for the authentication
response. Currently only supports HPKE.",
"type": "string",
"enum": [
"HPKE"
]
},
"recipient_public_key": {
"description": "The public key of your ECDH keypair, in
base64-encoded, SPKI-format, whose private key will be able to decrypt
the session key.",
"type": "string"
},
"user_jwt": {
"description": "The user's JWT, to be used to authenticate the
user.",
"type": "string"
}
}
}Fields§
§encryption_type: Option<AuthenticateBodyEncryptionType>The encryption type for the authentication response. Currently only supports HPKE.
recipient_public_key: Option<String>The public key of your ECDH keypair, in base64-encoded, SPKI-format, whose private key will be able to decrypt the session key.
user_jwt: StringThe user’s JWT, to be used to authenticate the user.
Trait Implementations§
Source§impl Clone for AuthenticateBody
impl Clone for AuthenticateBody
Source§fn clone(&self) -> AuthenticateBody
fn clone(&self) -> AuthenticateBody
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 AuthenticateBody
impl Debug for AuthenticateBody
Source§impl<'de> Deserialize<'de> for AuthenticateBody
impl<'de> Deserialize<'de> for AuthenticateBody
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<&AuthenticateBody> for AuthenticateBody
impl From<&AuthenticateBody> for AuthenticateBody
Source§fn from(value: &AuthenticateBody) -> Self
fn from(value: &AuthenticateBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthenticateBody
impl RefUnwindSafe for AuthenticateBody
impl Send for AuthenticateBody
impl Sync for AuthenticateBody
impl Unpin for AuthenticateBody
impl UnwindSafe for AuthenticateBody
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