Struct bpstd::XpubOrigin
source · pub struct XpubOrigin { /* private fields */ }Implementations§
source§impl XpubOrigin
impl XpubOrigin
sourcepub fn master_fp(&self) -> XpubFp
pub fn master_fp(&self) -> XpubFp
Method returning copy of XpubOrigin::master_fp field.
sourcepub fn derivation(&self) -> &DerivationPath<HardenedIndex>
pub fn derivation(&self) -> &DerivationPath<HardenedIndex>
Method borrowing XpubOrigin::derivation field.
source§impl XpubOrigin
impl XpubOrigin
pub fn new( master_fp: XpubFp, derivation: DerivationPath<HardenedIndex>, ) -> XpubOrigin
Trait Implementations§
source§impl Clone for XpubOrigin
impl Clone for XpubOrigin
source§fn clone(&self) -> XpubOrigin
fn clone(&self) -> XpubOrigin
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 XpubOrigin
impl Debug for XpubOrigin
source§impl Decode for XpubOrigin
impl Decode for XpubOrigin
fn decode(reader: &mut impl Read) -> Result<XpubOrigin, DecodeError>
fn deserialize(bytes: impl AsRef<[u8]>) -> Result<Self, PsbtError>
source§impl Display for XpubOrigin
impl Display for XpubOrigin
source§impl Encode for XpubOrigin
impl Encode for XpubOrigin
source§impl FromStr for XpubOrigin
impl FromStr for XpubOrigin
§type Err = OriginParseError
type Err = OriginParseError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<XpubOrigin, <XpubOrigin as FromStr>::Err>
fn from_str(s: &str) -> Result<XpubOrigin, <XpubOrigin as FromStr>::Err>
Parses a string
s to return a value of this type. Read moresource§impl Hash for XpubOrigin
impl Hash for XpubOrigin
source§impl PartialEq for XpubOrigin
impl PartialEq for XpubOrigin
source§fn eq(&self, other: &XpubOrigin) -> bool
fn eq(&self, other: &XpubOrigin) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for XpubOrigin
impl StructuralPartialEq for XpubOrigin
Auto Trait Implementations§
impl Freeze for XpubOrigin
impl RefUnwindSafe for XpubOrigin
impl Send for XpubOrigin
impl Sync for XpubOrigin
impl Unpin for XpubOrigin
impl UnwindSafe for XpubOrigin
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<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.