pub enum WalletImportInitBody {
HdInitInput(HdInitInput),
PrivateKeyInitInput(PrivateKeyInitInput),
}Expand description
WalletImportInitBody
JSON schema
{
"examples": [
{
"address": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
"chain_type": "ethereum",
"encryption_type": "HPKE",
"entropy_type": "private-key"
}
],
"oneOf": [
{
"$ref": "#/components/schemas/HDInitInput"
},
{
"$ref": "#/components/schemas/PrivateKeyInitInput"
}
]
}Variants§
HdInitInput(HdInitInput)
PrivateKeyInitInput(PrivateKeyInitInput)
Trait Implementations§
Source§impl Clone for WalletImportInitBody
impl Clone for WalletImportInitBody
Source§fn clone(&self) -> WalletImportInitBody
fn clone(&self) -> WalletImportInitBody
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 WalletImportInitBody
impl Debug for WalletImportInitBody
Source§impl<'de> Deserialize<'de> for WalletImportInitBody
impl<'de> Deserialize<'de> for WalletImportInitBody
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<&WalletImportInitBody> for WalletImportInitBody
impl From<&WalletImportInitBody> for WalletImportInitBody
Source§fn from(value: &WalletImportInitBody) -> Self
fn from(value: &WalletImportInitBody) -> Self
Converts to this type from the input type.
Source§impl From<HdInitInput> for WalletImportInitBody
impl From<HdInitInput> for WalletImportInitBody
Source§fn from(value: HdInitInput) -> Self
fn from(value: HdInitInput) -> Self
Converts to this type from the input type.
Source§impl From<PrivateKeyInitInput> for WalletImportInitBody
impl From<PrivateKeyInitInput> for WalletImportInitBody
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 WalletImportInitBody
impl RefUnwindSafe for WalletImportInitBody
impl Send for WalletImportInitBody
impl Sync for WalletImportInitBody
impl Unpin for WalletImportInitBody
impl UnsafeUnpin for WalletImportInitBody
impl UnwindSafe for WalletImportInitBody
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