pub struct DerivationPath { /* private fields */ }Expand description
Derivation Path
A derivation path is simply a sequence of DerivationIndex
Implementations§
Source§impl DerivationPath
impl DerivationPath
Sourcepub fn new(path: Vec<DerivationIndex>) -> Self
pub fn new(path: Vec<DerivationIndex>) -> Self
Create a free-form derivation path
Sourcepub fn from_canister_id_and_path(canister_id: &[u8], path: &[Vec<u8>]) -> Self
pub fn from_canister_id_and_path(canister_id: &[u8], path: &[Vec<u8>]) -> Self
Create a path from a canister ID and a user provided path
Sourcepub fn path(&self) -> &[DerivationIndex]
pub fn path(&self) -> &[DerivationIndex]
Return the components of the derivation path
Trait Implementations§
Source§impl Clone for DerivationPath
impl Clone for DerivationPath
Source§fn clone(&self) -> DerivationPath
fn clone(&self) -> DerivationPath
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DerivationPath
impl RefUnwindSafe for DerivationPath
impl Send for DerivationPath
impl Sync for DerivationPath
impl Unpin for DerivationPath
impl UnwindSafe for DerivationPath
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