Struct bdk_wallet::export::FullyNodedExport
source · pub struct FullyNodedExport {
pub blockheight: u32,
pub label: String,
/* private fields */
}
Expand description
Structure that contains the export of a wallet
For a usage example see this module’s documentation.
Fields§
§blockheight: u32
Earliest block to rescan when looking for the wallet’s transactions
label: String
Arbitrary label for the wallet
Implementations§
source§impl FullyNodedExport
impl FullyNodedExport
sourcepub fn export_wallet(
wallet: &Wallet,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
pub fn export_wallet( wallet: &Wallet, label: &str, include_blockheight: bool ) -> Result<Self, &'static str>
Export a wallet
This function returns an error if it determines that the wallet
’s descriptor(s) are not
supported by Bitcoin Core or don’t follow the standard derivation paths defined by BIP44
and others.
If include_blockheight
is true
, this function will look into the wallet
’s database
for the oldest transaction it knows and use that as the earliest block to rescan.
If the database is empty or include_blockheight
is false, the blockheight
field
returned will be 0
.
sourcepub fn descriptor(&self) -> String
pub fn descriptor(&self) -> String
Return the external descriptor
sourcepub fn change_descriptor(&self) -> Option<String>
pub fn change_descriptor(&self) -> Option<String>
Return the internal descriptor, if present
Trait Implementations§
source§impl Debug for FullyNodedExport
impl Debug for FullyNodedExport
source§impl<'de> Deserialize<'de> for FullyNodedExport
impl<'de> Deserialize<'de> for FullyNodedExport
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for FullyNodedExport
impl Display for FullyNodedExport
source§impl FromStr for FullyNodedExport
impl FromStr for FullyNodedExport
Auto Trait Implementations§
impl Freeze for FullyNodedExport
impl RefUnwindSafe for FullyNodedExport
impl Send for FullyNodedExport
impl Sync for FullyNodedExport
impl Unpin for FullyNodedExport
impl UnwindSafe for FullyNodedExport
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