Struct hdwallet::key_chain::Derivation
source · pub struct Derivation {
pub depth: u8,
pub parent_key: Option<ExtendedPrivKey>,
pub key_index: Option<KeyIndex>,
}
Expand description
KeyChain derivation info
Fields§
§depth: u8
depth, 0 if it is master key
parent_key: Option<ExtendedPrivKey>
parent key
key_index: Option<KeyIndex>
key_index which used with parent key to derive this key
Implementations§
source§impl Derivation
impl Derivation
Trait Implementations§
source§impl Clone for Derivation
impl Clone for Derivation
source§fn clone(&self) -> Derivation
fn clone(&self) -> Derivation
Returns a copy 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 Derivation
impl Debug for Derivation
source§impl Default for Derivation
impl Default for Derivation
source§impl PartialEq<Derivation> for Derivation
impl PartialEq<Derivation> for Derivation
source§fn eq(&self, other: &Derivation) -> bool
fn eq(&self, other: &Derivation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.