pub struct WalletBalanceParams {
pub address: String,
pub asset: Asset,
}Expand description
control.wallet.balance params: which address + asset to read the balance of.
A READ over the loopback control plane — never a spend. Field names + the Asset wire form are
byte-identical to dig-app’s frozen BalanceRequest, so the node reads exactly what dig-app emits.
Fields§
§address: StringThe xch1… address to read the balance of.
asset: AssetThe asset to read the balance for.
Trait Implementations§
Source§impl Clone for WalletBalanceParams
impl Clone for WalletBalanceParams
Source§fn clone(&self) -> WalletBalanceParams
fn clone(&self) -> WalletBalanceParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ControlCall for WalletBalanceParams
impl ControlCall for WalletBalanceParams
Source§const METHOD: ControlMethod = ControlMethod::WalletBalance
const METHOD: ControlMethod = ControlMethod::WalletBalance
The wire method this call invokes.
Source§type Output = WalletBalanceResult
type Output = WalletBalanceResult
The typed result this call returns on success.
Source§impl Debug for WalletBalanceParams
impl Debug for WalletBalanceParams
Source§impl<'de> Deserialize<'de> for WalletBalanceParams
impl<'de> Deserialize<'de> for WalletBalanceParams
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 Eq for WalletBalanceParams
Source§impl PartialEq for WalletBalanceParams
impl PartialEq for WalletBalanceParams
Source§impl Serialize for WalletBalanceParams
impl Serialize for WalletBalanceParams
impl StructuralPartialEq for WalletBalanceParams
Auto Trait Implementations§
impl Freeze for WalletBalanceParams
impl RefUnwindSafe for WalletBalanceParams
impl Send for WalletBalanceParams
impl Sync for WalletBalanceParams
impl Unpin for WalletBalanceParams
impl UnsafeUnpin for WalletBalanceParams
impl UnwindSafe for WalletBalanceParams
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