pub struct WalletExportRequestBody {
pub encryption_type: HpkeEncryption,
pub recipient_public_key: String,
}Expand description
WalletExportRequestBody
JSON schema
{
"title": "Wallet export request",
"examples": [
{
"encryption_type": "HPKE",
"recipient_public_key":
"BDAZLOIdTaPycEYkgG0MvCzbIKJLli/yWkAV5yCa9yOsZ4JsrLweA5MnP8YIiY4k/
RRzC+APhhO+P+Hoz/rt7Go="
}
],
"type": "object",
"required": [
"encryption_type",
"recipient_public_key"
],
"properties": {
"encryption_type": {
"$ref": "#/components/schemas/HPKEEncryption"
},
"recipient_public_key": {
"description": "The base64-encoded encryption public key to encrypt
the wallet private key with.",
"type": "string"
}
}
}Fields§
§encryption_type: HpkeEncryption§recipient_public_key: StringThe base64-encoded encryption public key to encrypt the wallet private key with.
Trait Implementations§
Source§impl Clone for WalletExportRequestBody
impl Clone for WalletExportRequestBody
Source§fn clone(&self) -> WalletExportRequestBody
fn clone(&self) -> WalletExportRequestBody
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 WalletExportRequestBody
impl Debug for WalletExportRequestBody
Source§impl<'de> Deserialize<'de> for WalletExportRequestBody
impl<'de> Deserialize<'de> for WalletExportRequestBody
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<&WalletExportRequestBody> for WalletExportRequestBody
impl From<&WalletExportRequestBody> for WalletExportRequestBody
Source§fn from(value: &WalletExportRequestBody) -> Self
fn from(value: &WalletExportRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletExportRequestBody
impl RefUnwindSafe for WalletExportRequestBody
impl Send for WalletExportRequestBody
impl Sync for WalletExportRequestBody
impl Unpin for WalletExportRequestBody
impl UnwindSafe for WalletExportRequestBody
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