pub struct AccountBalance {
pub balance: i32,
}Fields
balance: i32The balance in cents USD.
Implementations
sourceimpl AccountBalance
impl AccountBalance
sourcepub fn new(balance: i32) -> AccountBalance
pub fn new(balance: i32) -> 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
sourceimpl Clone for AccountBalance
impl Clone for AccountBalance
sourcefn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AccountBalance
impl Debug for AccountBalance
sourceimpl Default for AccountBalance
impl Default for AccountBalance
sourcefn default() -> AccountBalance
fn default() -> AccountBalance
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AccountBalance
impl<'de> Deserialize<'de> for AccountBalance
sourcefn 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
sourceimpl PartialEq<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
sourcefn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more