Struct solana_sdk::derivation_path::DerivationPath
source · pub struct DerivationPath(_);
Implementations§
source§impl DerivationPath
impl DerivationPath
pub fn from_key_str(path: &str) -> Result<Self, DerivationPathError>
pub fn new_bip44(account: Option<u32>, change: Option<u32>) -> Self
pub fn account(&self) -> Option<&ChildIndex>
pub fn change(&self) -> Option<&ChildIndex>
pub fn path(&self) -> &[ChildIndex]
pub fn get_query(&self) -> String
pub fn from_uri_key_query( uri: &URIReference<'_> ) -> Result<Option<Self>, DerivationPathError>
pub fn from_uri_any_query( uri: &URIReference<'_> ) -> Result<Option<Self>, DerivationPathError>
Trait Implementations§
source§impl AsRef<[ChildIndex]> for DerivationPath
impl AsRef<[ChildIndex]> for DerivationPath
source§fn as_ref(&self) -> &[ChildIndex]
fn as_ref(&self) -> &[ChildIndex]
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for DerivationPath
impl Clone for DerivationPath
source§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
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 DerivationPath
impl Debug for DerivationPath
source§impl Default for DerivationPath
impl Default for DerivationPath
source§impl<'a> IntoIterator for &'a DerivationPath
impl<'a> IntoIterator for &'a DerivationPath
source§impl PartialEq<DerivationPath> for DerivationPath
impl PartialEq<DerivationPath> for DerivationPath
source§fn eq(&self, other: &DerivationPath) -> bool
fn eq(&self, other: &DerivationPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.