pub struct Keypath {
pub components: Vec<PathComponent>,
pub source_fingerprint: Option<NonZeroU32>,
pub depth: Option<u8>,
}Expand description
Metadata for the complete or partial derivation path of a key.
Fields§
§components: Vec<PathComponent>Path component.
source_fingerprint: Option<NonZeroU32>Fingerprint from the ancestor key.
depth: Option<u8>How many derivations this key is from the master (which is 0).
Trait Implementations§
Source§impl<'a> From<KeypathRef<'a>> for Keypath
Available on crate feature alloc only.
impl<'a> From<KeypathRef<'a>> for Keypath
Available on crate feature
alloc only.Source§fn from(keypath: KeypathRef<'a>) -> Self
fn from(keypath: KeypathRef<'a>) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Keypath
Auto Trait Implementations§
impl Freeze for Keypath
impl RefUnwindSafe for Keypath
impl Send for Keypath
impl Sync for Keypath
impl Unpin for Keypath
impl UnwindSafe for Keypath
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