pub struct ChangeSet {
pub descriptor: Option<Descriptor<DescriptorPublicKey>>,
pub change_descriptor: Option<Descriptor<DescriptorPublicKey>>,
pub network: Option<Network>,
pub local_chain: ChangeSet,
pub tx_graph: ChangeSet<ConfirmationBlockTime>,
pub indexer: ChangeSet,
}
Expand description
A changeset for Wallet
.
Fields§
§descriptor: Option<Descriptor<DescriptorPublicKey>>
Descriptor for recipient addresses.
change_descriptor: Option<Descriptor<DescriptorPublicKey>>
Descriptor for change addresses.
network: Option<Network>
Stores the network type of the transaction data.
local_chain: ChangeSet
Changes to the LocalChain
.
tx_graph: ChangeSet<ConfirmationBlockTime>
Changes to TxGraph
.
indexer: ChangeSet
Changes to KeychainTxOutIndex
.
Implementations§
Source§impl ChangeSet
impl ChangeSet
Sourcepub const WALLET_SCHEMA_NAME: &'static str = "bdk_wallet"
pub const WALLET_SCHEMA_NAME: &'static str = "bdk_wallet"
Schema name for wallet.
Sourcepub const WALLET_TABLE_NAME: &'static str = "bdk_wallet"
pub const WALLET_TABLE_NAME: &'static str = "bdk_wallet"
Name of table to store wallet descriptors and network.
Sourcepub fn init_sqlite_tables(db_tx: &Transaction<'_>) -> Result<()>
pub fn init_sqlite_tables(db_tx: &Transaction<'_>) -> Result<()>
Initialize sqlite tables for wallet tables.
Sourcepub fn from_sqlite(db_tx: &Transaction<'_>) -> Result<Self>
pub fn from_sqlite(db_tx: &Transaction<'_>) -> Result<Self>
Recover a ChangeSet
from sqlite database.
Sourcepub fn persist_to_sqlite(&self, db_tx: &Transaction<'_>) -> Result<()>
pub fn persist_to_sqlite(&self, db_tx: &Transaction<'_>) -> Result<()>
Persist ChangeSet
to sqlite database.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChangeSet
impl<'de> Deserialize<'de> for ChangeSet
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
impl StructuralPartialEq for ChangeSet
Auto Trait Implementations§
impl !Freeze for ChangeSet
impl RefUnwindSafe for ChangeSet
impl Send for ChangeSet
impl Sync for ChangeSet
impl Unpin for ChangeSet
impl UnwindSafe for ChangeSet
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