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