Struct bitcoind_json_rpc_types::v17::GetBalance
source · pub struct GetBalance(pub f64);Expand description
Result of the JSON-RPC method getbalance.
getbalance ( “(dummy)” minconf include_watchonly )
Returns the total available balance. The available balance is what the wallet considers currently spendable, and is thus affected by options which limit spendability such as -spendzeroconfchange.
Arguments:
- (dummy) (string, optional) Remains for backward compatibility. Must be excluded or set to “*”.
- minconf (numeric, optional, default=0) Only include transactions confirmed at least this many times.
- include_watchonly (bool, optional, default=false) Also include balance in watch-only addresses (see ‘importaddress’)
Tuple Fields§
§0: f64Trait Implementations§
source§impl Clone for GetBalance
impl Clone for GetBalance
source§fn clone(&self) -> GetBalance
fn clone(&self) -> GetBalance
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 Debug for GetBalance
impl Debug for GetBalance
source§impl<'de> Deserialize<'de> for GetBalance
impl<'de> Deserialize<'de> for GetBalance
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
source§impl PartialEq for GetBalance
impl PartialEq for GetBalance
source§fn eq(&self, other: &GetBalance) -> bool
fn eq(&self, other: &GetBalance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GetBalance
impl Serialize for GetBalance
source§impl TryFrom<GetBalance> for GetBalance
impl TryFrom<GetBalance> for GetBalance
§type Error = ParseAmountError
type Error = ParseAmountError
The type returned in the event of a conversion error.
impl StructuralPartialEq for GetBalance
Auto Trait Implementations§
impl Freeze for GetBalance
impl RefUnwindSafe for GetBalance
impl Send for GetBalance
impl Sync for GetBalance
impl Unpin for GetBalance
impl UnwindSafe for GetBalance
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