pub struct HdInitInput {
pub address: String,
pub chain_type: WalletImportSupportedChains,
pub encryption_type: HpkeEncryption,
pub entropy_type: HdInitInputEntropyType,
pub index: u64,
}Expand description
The input for HD wallets.
JSON schema
{
"description": "The input for HD wallets.",
"type": "object",
"required": [
"address",
"chain_type",
"encryption_type",
"entropy_type",
"index"
],
"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": {
"description": "The entropy type of the wallet to import.",
"type": "string",
"enum": [
"hd"
]
},
"index": {
"description": "The index of the wallet to import.",
"type": "integer",
"minimum": 0.0
}
}
}Fields§
§address: StringThe address of the wallet to import.
chain_type: WalletImportSupportedChains§encryption_type: HpkeEncryption§entropy_type: HdInitInputEntropyTypeThe entropy type of the wallet to import.
index: u64The index of the wallet to import.
Trait Implementations§
Source§impl Clone for HdInitInput
impl Clone for HdInitInput
Source§fn clone(&self) -> HdInitInput
fn clone(&self) -> HdInitInput
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 HdInitInput
impl Debug for HdInitInput
Source§impl<'de> Deserialize<'de> for HdInitInput
impl<'de> Deserialize<'de> for HdInitInput
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<&HdInitInput> for HdInitInput
impl From<&HdInitInput> for HdInitInput
Source§fn from(value: &HdInitInput) -> Self
fn from(value: &HdInitInput) -> Self
Converts to this type from the input type.
Source§impl From<HdInitInput> for WalletImportInitializationRequest
impl From<HdInitInput> for WalletImportInitializationRequest
Source§fn from(value: HdInitInput) -> Self
fn from(value: HdInitInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HdInitInput
impl RefUnwindSafe for HdInitInput
impl Send for HdInitInput
impl Sync for HdInitInput
impl Unpin for HdInitInput
impl UnwindSafe for HdInitInput
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