[][src]Struct bdk::wallet::export::WalletExport

pub struct WalletExport {
    pub blockheight: u32,
    pub label: String,
    // some fields omitted
}

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

impl WalletExport[src]

pub fn export_wallet<B: BlockchainMarker, D: BatchDatabase>(
    wallet: &Wallet<B, D>,
    label: &str,
    include_blockheight: bool
) -> Result<Self, &'static str>
[src]

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.

pub fn descriptor(&self) -> String[src]

Return the external descriptor

pub fn change_descriptor(&self) -> Option<String>[src]

Return the internal descriptor, if present

Trait Implementations

impl Debug for WalletExport[src]

impl<'de> Deserialize<'de> for WalletExport[src]

impl FromStr for WalletExport[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for WalletExport[src]

impl ToString for WalletExport[src]

Auto Trait Implementations

impl RefUnwindSafe for WalletExport

impl Send for WalletExport

impl Sync for WalletExport

impl Unpin for WalletExport

impl UnwindSafe for WalletExport

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,