pub struct WalletAuthenticateRequestBody {
pub encryption_type: WalletAuthenticateRequestBodyEncryptionType,
pub recipient_public_key: String,
pub user_jwt: String,
}Expand description
Request body for wallet authentication with HPKE-encrypted response.
JSON schema
{
"title": "WalletAuthenticateRequestBody",
"description": "Request body for wallet authentication with
HPKE-encrypted response.",
"type": "object",
"required": [
"encryption_type",
"recipient_public_key",
"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"
}
},
"x-stainless-model": "wallets.wallet_authenticate_request_body"
}Fields§
§encryption_type: WalletAuthenticateRequestBodyEncryptionTypeThe encryption type for the authentication response. Currently only supports HPKE.
recipient_public_key: StringThe 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 WalletAuthenticateRequestBody
impl Clone for WalletAuthenticateRequestBody
Source§fn clone(&self) -> WalletAuthenticateRequestBody
fn clone(&self) -> WalletAuthenticateRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for WalletAuthenticateRequestBody
impl<'de> Deserialize<'de> for WalletAuthenticateRequestBody
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<&WalletAuthenticateRequestBody> for WalletAuthenticateRequestBody
impl From<&WalletAuthenticateRequestBody> for WalletAuthenticateRequestBody
Source§fn from(value: &WalletAuthenticateRequestBody) -> Self
fn from(value: &WalletAuthenticateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletAuthenticateRequestBody
impl RefUnwindSafe for WalletAuthenticateRequestBody
impl Send for WalletAuthenticateRequestBody
impl Sync for WalletAuthenticateRequestBody
impl Unpin for WalletAuthenticateRequestBody
impl UnsafeUnpin for WalletAuthenticateRequestBody
impl UnwindSafe for WalletAuthenticateRequestBody
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