Struct rgb_lib::wallet::WalletData
source · pub struct WalletData {
pub data_dir: String,
pub bitcoin_network: BitcoinNetwork,
pub database_type: DatabaseType,
pub max_allocations_per_utxo: u32,
pub pubkey: String,
pub mnemonic: Option<String>,
pub vanilla_keychain: Option<u8>,
}
Expand description
Data that defines a Wallet
.
Fields§
§data_dir: String
Directory where the wallet directory is stored
bitcoin_network: BitcoinNetwork
Bitcoin network for the wallet
database_type: DatabaseType
Database type for the wallet
max_allocations_per_utxo: u32
The max number of RGB allocations allowed per UTXO
pubkey: String
Wallet xPub
mnemonic: Option<String>
Wallet mnemonic phrase
vanilla_keychain: Option<u8>
Keychain index for the vanilla wallet (default: 1)
Trait Implementations§
source§impl Clone for WalletData
impl Clone for WalletData
source§fn clone(&self) -> WalletData
fn clone(&self) -> WalletData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for WalletData
impl<'de> Deserialize<'de> for WalletData
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
Auto Trait Implementations§
impl RefUnwindSafe for WalletData
impl Send for WalletData
impl Sync for WalletData
impl Unpin for WalletData
impl UnwindSafe for WalletData
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