Struct avalanche_types::key::hot::PrivateKeyInfoEntry
source · [−]pub struct PrivateKeyInfoEntry {
pub mnemonic_phrase: Option<String>,
pub private_key: String,
pub private_key_hex: String,
pub addresses: HashMap<String, ChainAddresses>,
pub short_address: Id,
pub eth_address: String,
}
Fields
mnemonic_phrase: Option<String>
private_key: String
CB58-encoded private key with the prefix “PrivateKey-”.
private_key_hex: String
addresses: HashMap<String, ChainAddresses>
short_address: Id
eth_address: String
Implementations
Trait Implementations
sourceimpl Clone for PrivateKeyInfoEntry
impl Clone for PrivateKeyInfoEntry
sourcefn clone(&self) -> PrivateKeyInfoEntry
fn clone(&self) -> PrivateKeyInfoEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrivateKeyInfoEntry
impl Debug for PrivateKeyInfoEntry
sourceimpl<'de> Deserialize<'de> for PrivateKeyInfoEntry
impl<'de> Deserialize<'de> for PrivateKeyInfoEntry
sourcefn 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
sourceimpl Display for PrivateKeyInfoEntry
impl Display for PrivateKeyInfoEntry
ref. https://doc.rust-lang.org/std/string/trait.ToString.html ref. https://doc.rust-lang.org/std/fmt/trait.Display.html Use “Self.to_string()” to directly invoke this
sourceimpl PartialEq<PrivateKeyInfoEntry> for PrivateKeyInfoEntry
impl PartialEq<PrivateKeyInfoEntry> for PrivateKeyInfoEntry
sourcefn eq(&self, other: &PrivateKeyInfoEntry) -> bool
fn eq(&self, other: &PrivateKeyInfoEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PrivateKeyInfoEntry) -> bool
fn ne(&self, other: &PrivateKeyInfoEntry) -> bool
This method tests for !=
.
sourceimpl Serialize for PrivateKeyInfoEntry
impl Serialize for PrivateKeyInfoEntry
impl Eq for PrivateKeyInfoEntry
impl StructuralEq for PrivateKeyInfoEntry
impl StructuralPartialEq for PrivateKeyInfoEntry
Auto Trait Implementations
impl RefUnwindSafe for PrivateKeyInfoEntry
impl Send for PrivateKeyInfoEntry
impl Sync for PrivateKeyInfoEntry
impl Unpin for PrivateKeyInfoEntry
impl UnwindSafe for PrivateKeyInfoEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.