Struct miniscript::descriptor::SinglePriv
source · pub struct SinglePriv {
pub origin: Option<(Fingerprint, DerivationPath)>,
pub key: PrivateKey,
}
Expand description
A descriptor bitcoin::PrivateKey
with optional origin information.
Fields§
§origin: Option<(Fingerprint, DerivationPath)>
Origin information (fingerprint and derivation path).
key: PrivateKey
The private key.
Trait Implementations§
source§impl Clone for SinglePriv
impl Clone for SinglePriv
source§fn clone(&self) -> SinglePriv
fn clone(&self) -> SinglePriv
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 SinglePriv
impl Debug for SinglePriv
source§impl PartialEq<SinglePriv> for SinglePriv
impl PartialEq<SinglePriv> for SinglePriv
source§fn eq(&self, other: &SinglePriv) -> bool
fn eq(&self, other: &SinglePriv) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SinglePriv
impl StructuralEq for SinglePriv
impl StructuralPartialEq for SinglePriv
Auto Trait Implementations§
impl RefUnwindSafe for SinglePriv
impl Send for SinglePriv
impl Sync for SinglePriv
impl Unpin for SinglePriv
impl UnwindSafe for SinglePriv
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