#[non_exhaustive]pub struct Credits {
pub has_credits: bool,
pub unlimited: bool,
pub balance: Option<String>,
}Expand description
A pay-as-you-go balance.
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.has_credits: boolWhether any credits are available.
unlimited: boolWhether the account is uncapped.
balance: Option<String>The balance as the provider wrote it. Kept as text because it arrives as a string and a decimal balance must not be rounded through a float on its way to a display.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Credits
impl<'de> Deserialize<'de> for Credits
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 StructuralPartialEq for Credits
Auto Trait Implementations§
impl Freeze for Credits
impl RefUnwindSafe for Credits
impl Send for Credits
impl Sync for Credits
impl Unpin for Credits
impl UnsafeUnpin for Credits
impl UnwindSafe for Credits
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