#[non_exhaustive]pub struct Balances {
pub currency: String,
pub available_balance: f64,
pub account_balance: f64,
pub earned_amount: f64,
pub withdrawable_amount: f64,
pub funds_required_for_auto_renew: f64,
}Expand description
Account balances returned by Users::get_balances.
Amounts are parsed into f64. Because the API returns them as decimal
strings, treat these values as display figures rather than as inputs to
exact financial arithmetic.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.currency: StringThe account currency (for example "USD").
available_balance: f64The balance available to spend.
account_balance: f64The total account balance.
earned_amount: f64The amount earned (for reseller/affiliate accounts).
withdrawable_amount: f64The amount that can currently be withdrawn.
funds_required_for_auto_renew: f64The funds required to cover upcoming auto-renewals.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Balances
impl<'de> Deserialize<'de> for Balances
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
Auto Trait Implementations§
impl Freeze for Balances
impl RefUnwindSafe for Balances
impl Send for Balances
impl Sync for Balances
impl Unpin for Balances
impl UnsafeUnpin for Balances
impl UnwindSafe for Balances
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