pub struct PrivateKeyInitInput {
pub address: String,
pub chain_type: WalletImportSupportedChains,
pub encryption_type: HpkeEncryption,
pub entropy_type: PrivateKeyInitInputEntropyType,
}Expand description
The input for private key wallets.
JSON schema
{
"description": "The input for private key wallets.",
"type": "object",
"required": [
"address",
"chain_type",
"encryption_type",
"entropy_type"
],
"properties": {
"address": {
"description": "The address of the wallet to import.",
"type": "string"
},
"chain_type": {
"$ref": "#/components/schemas/WalletImportSupportedChains"
},
"encryption_type": {
"$ref": "#/components/schemas/HPKEEncryption"
},
"entropy_type": {
"type": "string",
"enum": [
"private-key"
]
}
}
}Fields§
§address: StringThe address of the wallet to import.
chain_type: WalletImportSupportedChains§encryption_type: HpkeEncryption§entropy_type: PrivateKeyInitInputEntropyTypeTrait Implementations§
Source§impl Clone for PrivateKeyInitInput
impl Clone for PrivateKeyInitInput
Source§fn clone(&self) -> PrivateKeyInitInput
fn clone(&self) -> PrivateKeyInitInput
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 PrivateKeyInitInput
impl Debug for PrivateKeyInitInput
Source§impl<'de> Deserialize<'de> for PrivateKeyInitInput
impl<'de> Deserialize<'de> for PrivateKeyInitInput
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<&PrivateKeyInitInput> for PrivateKeyInitInput
impl From<&PrivateKeyInitInput> for PrivateKeyInitInput
Source§fn from(value: &PrivateKeyInitInput) -> Self
fn from(value: &PrivateKeyInitInput) -> Self
Converts to this type from the input type.
Source§impl From<PrivateKeyInitInput> for WalletImportInitializationRequest
impl From<PrivateKeyInitInput> for WalletImportInitializationRequest
Source§fn from(value: PrivateKeyInitInput) -> Self
fn from(value: PrivateKeyInitInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivateKeyInitInput
impl RefUnwindSafe for PrivateKeyInitInput
impl Send for PrivateKeyInitInput
impl Sync for PrivateKeyInitInput
impl Unpin for PrivateKeyInitInput
impl UnwindSafe for PrivateKeyInitInput
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