pub struct PrivateKeyExportInput {
pub encryption_type: HpkeEncryption,
pub export_seed_phrase: Option<bool>,
pub export_type: Option<ExportType>,
pub recipient_public_key: RecipientPublicKey,
}Expand description
Input for exporting a wallet (private key or seed phrase) with HPKE encryption.
JSON schema
{
"title": "PrivateKeyExportInput",
"description": "Input for exporting a wallet (private key or seed
phrase) with HPKE encryption.",
"type": "object",
"required": [
"encryption_type",
"recipient_public_key"
],
"properties": {
"encryption_type": {
"$ref": "#/components/schemas/HPKEEncryption"
},
"export_seed_phrase": {
"type": "boolean"
},
"export_type": {
"$ref": "#/components/schemas/ExportType"
},
"recipient_public_key": {
"$ref": "#/components/schemas/RecipientPublicKey"
}
},
"x-stainless-model": "wallets.private_key_export_input"
}Fields§
§encryption_type: HpkeEncryption§export_seed_phrase: Option<bool>§export_type: Option<ExportType>§recipient_public_key: RecipientPublicKeyTrait Implementations§
Source§impl Clone for PrivateKeyExportInput
impl Clone for PrivateKeyExportInput
Source§fn clone(&self) -> PrivateKeyExportInput
fn clone(&self) -> PrivateKeyExportInput
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 Debug for PrivateKeyExportInput
impl Debug for PrivateKeyExportInput
Source§impl<'de> Deserialize<'de> for PrivateKeyExportInput
impl<'de> Deserialize<'de> for PrivateKeyExportInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrivateKeyExportInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PrivateKeyExportInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PrivateKeyExportInput> for PrivateKeyExportInput
impl From<&PrivateKeyExportInput> for PrivateKeyExportInput
Source§fn from(value: &PrivateKeyExportInput) -> PrivateKeyExportInput
fn from(value: &PrivateKeyExportInput) -> PrivateKeyExportInput
Converts to this type from the input type.
Source§impl Serialize for PrivateKeyExportInput
impl Serialize for PrivateKeyExportInput
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 PrivateKeyExportInput
impl RefUnwindSafe for PrivateKeyExportInput
impl Send for PrivateKeyExportInput
impl Sync for PrivateKeyExportInput
impl Unpin for PrivateKeyExportInput
impl UnsafeUnpin for PrivateKeyExportInput
impl UnwindSafe for PrivateKeyExportInput
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