Struct solana_sdk::derivation_path::DerivationPath
source · [−]pub struct DerivationPath(_);
Implementations
sourceimpl 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
sourceimpl AsRef<[ChildIndex]> for DerivationPath
impl AsRef<[ChildIndex]> for DerivationPath
sourcefn as_ref(&self) -> &[ChildIndex]
fn as_ref(&self) -> &[ChildIndex]
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for DerivationPath
impl Clone for DerivationPath
sourcefn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
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 DerivationPath
impl Debug for DerivationPath
sourceimpl Default for DerivationPath
impl Default for DerivationPath
sourceimpl<'a> IntoIterator for &'a DerivationPath
impl<'a> IntoIterator for &'a DerivationPath
type IntoIter = Iter<'a, ChildIndex>
type IntoIter = Iter<'a, ChildIndex>
Which kind of iterator are we turning this into?
type Item = &'a ChildIndex
type Item = &'a ChildIndex
The type of the elements being iterated over.
sourceimpl PartialEq<DerivationPath> for DerivationPath
impl PartialEq<DerivationPath> for DerivationPath
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DerivationPath) -> bool
fn ne(&self, other: &DerivationPath) -> bool
This method tests for !=
.
sourceimpl TryFrom<&'_ str> for DerivationPath
impl TryFrom<&'_ str> for DerivationPath
impl StructuralPartialEq for DerivationPath
Auto Trait Implementations
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnwindSafe for DerivationPath
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more