pub struct AccountBalance {
pub balance: i64,
}Fields§
§balance: i64The balance in cents USD.
Implementations§
source§impl AccountBalance
impl AccountBalance
sourcepub fn new(balance: i64) -> AccountBalance
pub fn new(balance: i64) -> AccountBalance
Balance of QCS account in billing system. Note, a negative balance signifies that the account has QCS credits to spend. A positive account balance signifies that the account has no additional QCS credits to spend. The QCS UI may display these quantities in absolute or negative value and provide a clear meaning to the significance.
Trait Implementations§
source§impl Clone for AccountBalance
impl Clone for AccountBalance
source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
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 AccountBalance
impl Debug for AccountBalance
source§impl Default for AccountBalance
impl Default for AccountBalance
source§fn default() -> AccountBalance
fn default() -> AccountBalance
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
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<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
source§fn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AccountBalance
impl Serialize for AccountBalance
impl StructuralPartialEq for AccountBalance
Auto Trait Implementations§
impl RefUnwindSafe for AccountBalance
impl Send for AccountBalance
impl Sync for AccountBalance
impl Unpin for AccountBalance
impl UnwindSafe for AccountBalance
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