pub struct DerivedKeyRef<'a> {
pub is_private: bool,
pub key_data: [u8; 33],
pub chain_code: Option<[u8; 32]>,
pub use_info: Option<CoinInfo>,
pub origin: Option<KeypathRef<'a>>,
pub children: Option<KeypathRef<'a>>,
pub parent_fingerprint: Option<NonZeroU32>,
pub name: Option<&'a str>,
pub note: Option<&'a str>,
}Expand description
A derived key (non-owned, zero copy).
Fields§
§is_private: booltrue if key is private, false if public.
key_data: [u8; 33]Key data bytes.
chain_code: Option<[u8; 32]>Optional chain code.
use_info: Option<CoinInfo>How the key is to be used.
origin: Option<KeypathRef<'a>>How the key was derived.
children: Option<KeypathRef<'a>>What children should/can be derived from this.
parent_fingerprint: Option<NonZeroU32>The fingerprint of this key’s direct ancestor.
name: Option<&'a str>A short name for this key.
note: Option<&'a str>An arbitrary amount of text describing the key.
Trait Implementations§
Source§impl<'a> Clone for DerivedKeyRef<'a>
impl<'a> Clone for DerivedKeyRef<'a>
Source§fn clone(&self) -> DerivedKeyRef<'a>
fn clone(&self) -> DerivedKeyRef<'a>
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 moreSource§impl<'a> Debug for DerivedKeyRef<'a>
impl<'a> Debug for DerivedKeyRef<'a>
Source§impl<'b, C> Decode<'b, C> for DerivedKeyRef<'b>
impl<'b, C> Decode<'b, C> for DerivedKeyRef<'b>
Source§impl<'a, C> Encode<C> for DerivedKeyRef<'a>
impl<'a, C> Encode<C> for DerivedKeyRef<'a>
Source§impl<'a> From<DerivedKeyRef<'a>> for DerivedKey
Available on crate feature alloc only.
impl<'a> From<DerivedKeyRef<'a>> for DerivedKey
Available on crate feature
alloc only.Source§fn from(derived_key: DerivedKeyRef<'a>) -> Self
fn from(derived_key: DerivedKeyRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for DerivedKeyRef<'a>
impl<'a> PartialEq for DerivedKeyRef<'a>
impl<'a> StructuralPartialEq for DerivedKeyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DerivedKeyRef<'a>
impl<'a> RefUnwindSafe for DerivedKeyRef<'a>
impl<'a> Send for DerivedKeyRef<'a>
impl<'a> Sync for DerivedKeyRef<'a>
impl<'a> Unpin for DerivedKeyRef<'a>
impl<'a> UnwindSafe for DerivedKeyRef<'a>
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