Struct electrum_client::GetBalanceRes
source · pub struct GetBalanceRes {
pub confirmed: u64,
pub unconfirmed: i64,
}
Expand description
Response to a script_get_balance
request.
Fields§
§confirmed: u64
Confirmed balance in Satoshis for the address.
unconfirmed: i64
Unconfirmed balance in Satoshis for the address.
Some servers (e.g. electrs
) return this as a negative value.
Trait Implementations§
source§impl Clone for GetBalanceRes
impl Clone for GetBalanceRes
source§fn clone(&self) -> GetBalanceRes
fn clone(&self) -> GetBalanceRes
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 GetBalanceRes
impl Debug for GetBalanceRes
source§impl<'de> Deserialize<'de> for GetBalanceRes
impl<'de> Deserialize<'de> for GetBalanceRes
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 GetBalanceRes
impl Send for GetBalanceRes
impl Sync for GetBalanceRes
impl Unpin for GetBalanceRes
impl UnwindSafe for GetBalanceRes
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