pub struct GetDescriptorOptions {
pub master_fingerprint: Fingerprint,
pub target: DescriptorTarget,
pub is_change: bool,
pub descriptor_type: DescriptorType,
pub network: Network,
}Expand description
Parameters for deriving a single-key wildcard descriptor.
Fields§
§master_fingerprint: FingerprintThe device’s master fingerprint to include in the key origin.
target: DescriptorTargetThe path or account used to derive the descriptor key.
is_change: boolWhether account-based derivation selects the change branch.
descriptor_type: DescriptorTypeThe requested script type.
network: NetworkThe network used for account derivation: Bitcoin uses coin type 0, others 1.
Implementations§
Source§impl GetDescriptorOptions
impl GetDescriptorOptions
Sourcepub fn with_path(
master_fingerprint: Fingerprint,
path: DerivationPath,
is_change: bool,
descriptor_type: DescriptorType,
network: Network,
) -> GetDescriptorOptions
pub fn with_path( master_fingerprint: Fingerprint, path: DerivationPath, is_change: bool, descriptor_type: DescriptorType, network: Network, ) -> GetDescriptorOptions
Creates options using an explicit path preceding the descriptor wildcard.
Sourcepub fn with_account(
master_fingerprint: Fingerprint,
account: u32,
is_change: bool,
descriptor_type: DescriptorType,
network: Network,
) -> GetDescriptorOptions
pub fn with_account( master_fingerprint: Fingerprint, account: u32, is_change: bool, descriptor_type: DescriptorType, network: Network, ) -> GetDescriptorOptions
Creates options using a script-specific account and receive/change branch.
Trait Implementations§
Source§impl Clone for GetDescriptorOptions
impl Clone for GetDescriptorOptions
Source§fn clone(&self) -> GetDescriptorOptions
fn clone(&self) -> GetDescriptorOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GetDescriptorOptions
impl RefUnwindSafe for GetDescriptorOptions
impl Send for GetDescriptorOptions
impl Sync for GetDescriptorOptions
impl Unpin for GetDescriptorOptions
impl UnsafeUnpin for GetDescriptorOptions
impl UnwindSafe for GetDescriptorOptions
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