pub struct BalanceSummary {
pub spendable: Amount,
pub needs_refresh: Amount,
pub pending: Amount,
pub total: Amount,
}Expand description
Fields§
§spendable: AmountSats that can be spent right now. See spendable_sat of Balance.
needs_refresh: AmountSats that need a refresh before they can be sent again. See
needs_refresh_sat of Balance.
pending: AmountSats held by operations in progress: the sum of the pending_*_sat
fields of Balance. They either come back as spendable or leave the
wallet, for example to the on-chain wallet.
total: AmountAll sats that belong to the wallet: spendable_sat + needs_refresh_sat + pending_sat.
Trait Implementations§
Source§impl Clone for BalanceSummary
impl Clone for BalanceSummary
Source§impl Debug for BalanceSummary
impl Debug for BalanceSummary
Source§impl<'de> Deserialize<'de> for BalanceSummary
impl<'de> Deserialize<'de> for BalanceSummary
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 BalanceSummary
Source§impl From<&Balance> for BalanceSummary
impl From<&Balance> for BalanceSummary
Source§impl From<Balance> for BalanceSummary
impl From<Balance> for BalanceSummary
Source§impl From<BalanceSummary> for BalanceSummary
impl From<BalanceSummary> for BalanceSummary
Source§fn from(v: BalanceSummary) -> Self
fn from(v: BalanceSummary) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BalanceSummary
impl PartialEq for BalanceSummary
Source§impl Serialize for BalanceSummary
impl Serialize for BalanceSummary
impl StructuralPartialEq for BalanceSummary
Auto Trait Implementations§
impl Freeze for BalanceSummary
impl RefUnwindSafe for BalanceSummary
impl Send for BalanceSummary
impl Sync for BalanceSummary
impl Unpin for BalanceSummary
impl UnsafeUnpin for BalanceSummary
impl UnwindSafe for BalanceSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request