pub struct WalletExportResponseBody {
pub ciphertext: String,
pub encapsulated_key: String,
pub encryption_type: HpkeEncryption,
}Expand description
WalletExportResponseBody
JSON schema
{
"title": "Wallet export response",
"examples": [
{
"ciphertext":
"PRoRXygG+YYSDBXjCopNYZmx8Z6nvdl1D0lpePTYZdZI2VGfK+LkFt+GlEJqdoi9",
"encapsulated_key":
"BOhR6xITDt5THJawHHJKrKdI9CBr2M/
SDWzZZAaOW4gCMsSpC65U007WyKiwuuOVAo1BNm4YgcBBROuMmyIZXZk=",
"encryption_type": "HPKE"
}
],
"type": "object",
"required": [
"ciphertext",
"encapsulated_key",
"encryption_type"
],
"properties": {
"ciphertext": {
"description": "The encrypted private key.",
"type": "string"
},
"encapsulated_key": {
"description": "The base64-encoded encapsulated key that was
generated during encryption, for use during decryption.",
"type": "string"
},
"encryption_type": {
"$ref": "#/components/schemas/HPKEEncryption"
}
}
}Fields§
§ciphertext: StringThe encrypted private key.
encapsulated_key: StringThe base64-encoded encapsulated key that was generated during encryption, for use during decryption.
encryption_type: HpkeEncryptionTrait Implementations§
Source§impl Clone for WalletExportResponseBody
impl Clone for WalletExportResponseBody
Source§fn clone(&self) -> WalletExportResponseBody
fn clone(&self) -> WalletExportResponseBody
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 WalletExportResponseBody
impl Debug for WalletExportResponseBody
Source§impl<'de> Deserialize<'de> for WalletExportResponseBody
impl<'de> Deserialize<'de> for WalletExportResponseBody
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<&WalletExportResponseBody> for WalletExportResponseBody
impl From<&WalletExportResponseBody> for WalletExportResponseBody
Source§fn from(value: &WalletExportResponseBody) -> Self
fn from(value: &WalletExportResponseBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletExportResponseBody
impl RefUnwindSafe for WalletExportResponseBody
impl Send for WalletExportResponseBody
impl Sync for WalletExportResponseBody
impl Unpin for WalletExportResponseBody
impl UnwindSafe for WalletExportResponseBody
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