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<WalletImportInitBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletImportInitBody, <__D as Deserializer<'de>>::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) -> WalletImportInitBody
fn from(value: &WalletImportInitBody) -> WalletImportInitBody
Converts to this type from the input type.
Source§impl From<HdInitInput> for WalletImportInitBody
impl From<HdInitInput> for WalletImportInitBody
Source§fn from(value: HdInitInput) -> WalletImportInitBody
fn from(value: HdInitInput) -> WalletImportInitBody
Converts to this type from the input type.
Source§impl From<PrivateKeyInitInput> for WalletImportInitBody
impl From<PrivateKeyInitInput> for WalletImportInitBody
Source§fn from(value: PrivateKeyInitInput) -> WalletImportInitBody
fn from(value: PrivateKeyInitInput) -> WalletImportInitBody
Converts to this type from the input type.
Source§impl Serialize for WalletImportInitBody
impl Serialize for WalletImportInitBody
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 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