[][src]Struct cxmr_balances::Balance

pub struct Balance {
    pub total: u64,
    pub in_use: u64,
    pub unused: u64,
    pub total_btc: Option<f64>,
}

Account balance.

Fields

total: u64

Total assets.

in_use: u64

Assets in use.

unused: u64

Unused assets.

total_btc: Option<f64>

Total balance in BTC. Only for monitoring.

Methods

impl Balance[src]

pub fn is_zero(&self) -> bool[src]

pub fn quote(&self) -> f64[src]

Trait Implementations

impl Clone for Balance[src]

impl Debug for Balance[src]

impl Default for Balance[src]

impl<'de> Deserialize<'de> for Balance[src]

impl Serialize for Balance[src]

Auto Trait Implementations

impl RefUnwindSafe for Balance

impl Send for Balance

impl Sync for Balance

impl Unpin for Balance

impl UnwindSafe for Balance

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.