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
sourceimpl FullyNodedExport
impl FullyNodedExport
sourcepub fn export_wallet<D: BatchDatabase>(
wallet: &Wallet<D>,
label: &str,
include_blockheight: bool
) -> Result<Self, &'static str>
pub fn export_wallet<D: BatchDatabase>(
wallet: &Wallet<D>,
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
sourceimpl Debug for FullyNodedExport
impl Debug for FullyNodedExport
sourceimpl<'de> Deserialize<'de> for FullyNodedExport
impl<'de> Deserialize<'de> for FullyNodedExport
sourcefn 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
sourceimpl FromStr for FullyNodedExport
impl FromStr for FullyNodedExport
sourceimpl Serialize for FullyNodedExport
impl Serialize for FullyNodedExport
Auto Trait Implementations
impl RefUnwindSafe for FullyNodedExport
impl Send for FullyNodedExport
impl Sync for FullyNodedExport
impl Unpin for FullyNodedExport
impl UnwindSafe for FullyNodedExport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more