pub struct XpubAccount { /* private fields */ }
Implementations§
Source§impl XpubAccount
impl XpubAccount
Sourcepub fn origin(&self) -> &XkeyOrigin
pub fn origin(&self) -> &XkeyOrigin
Method borrowing XpubAccount::origin
field.
Sourcepub fn xpub(&self) -> &Xpub
pub fn xpub(&self) -> &Xpub
Method borrowing XpubAccount::xpub
field.
Source§impl XpubAccount
impl XpubAccount
pub fn new(xpub: Xpub, origin: XkeyOrigin) -> Result<Self, XkeyAccountError>
pub const fn master_fp(&self) -> XpubFp
pub fn account_fp(&self) -> XpubFp
pub fn account_id(&self) -> XpubId
pub fn derivation(&self) -> &[HardenedIndex]
pub const fn as_derivation(&self) -> &DerivationPath<HardenedIndex>
pub fn to_derivation(&self) -> DerivationPath
Trait Implementations§
Source§impl Clone for XpubAccount
impl Clone for XpubAccount
Source§fn clone(&self) -> XpubAccount
fn clone(&self) -> XpubAccount
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 XpubAccount
impl Debug for XpubAccount
Source§impl Display for XpubAccount
impl Display for XpubAccount
Source§impl From<XpubAccount> for XpubDerivable
impl From<XpubAccount> for XpubDerivable
Source§fn from(spec: XpubAccount) -> Self
fn from(spec: XpubAccount) -> Self
Converts to this type from the input type.
Source§impl FromStr for XpubAccount
impl FromStr for XpubAccount
Source§impl Hash for XpubAccount
impl Hash for XpubAccount
Source§impl PartialEq for XpubAccount
impl PartialEq for XpubAccount
impl Eq for XpubAccount
impl StructuralPartialEq for XpubAccount
Auto Trait Implementations§
impl Freeze for XpubAccount
impl RefUnwindSafe for XpubAccount
impl Send for XpubAccount
impl Sync for XpubAccount
impl Unpin for XpubAccount
impl UnwindSafe for XpubAccount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.