pub struct BalanceInfo {
pub currency: String,
pub total_balance: String,
pub granted_balance: String,
pub topped_up_balance: String,
}Expand description
Balance entry by currency.
Fields§
§currency: StringPossible values: [CNY, USD]
The currency of the balance.
total_balance: StringThe total available balance, including the granted balance and the topped-up balance.
granted_balance: StringThe total not expired granted balance.
topped_up_balance: StringThe total topped-up balance.
Trait Implementations§
Source§impl Clone for BalanceInfo
impl Clone for BalanceInfo
Source§fn clone(&self) -> BalanceInfo
fn clone(&self) -> BalanceInfo
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 Debug for BalanceInfo
impl Debug for BalanceInfo
Source§impl<'de> Deserialize<'de> for BalanceInfo
impl<'de> Deserialize<'de> for BalanceInfo
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 BalanceInfo
Source§impl PartialEq for BalanceInfo
impl PartialEq for BalanceInfo
impl StructuralPartialEq for BalanceInfo
Auto Trait Implementations§
impl Freeze for BalanceInfo
impl RefUnwindSafe for BalanceInfo
impl Send for BalanceInfo
impl Sync for BalanceInfo
impl Unpin for BalanceInfo
impl UnsafeUnpin for BalanceInfo
impl UnwindSafe for BalanceInfo
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.