pub struct CreditsData {
pub label: Option<String>,
pub balance: Option<f64>,
pub usage: Option<f64>,
pub limit: Option<f64>,
pub is_free_tier: Option<bool>,
}Expand description
Credit balance data.
Fields§
§label: Option<String>Label (usually “default”).
balance: Option<f64>Remaining balance in USD.
usage: Option<f64>Usage limit per interval.
limit: Option<f64>Rate limit interval in seconds.
is_free_tier: Option<bool>Whether rate limited.
Trait Implementations§
Source§impl Clone for CreditsData
impl Clone for CreditsData
Source§fn clone(&self) -> CreditsData
fn clone(&self) -> CreditsData
Returns a duplicate 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 CreditsData
impl Debug for CreditsData
Source§impl<'de> Deserialize<'de> for CreditsData
impl<'de> Deserialize<'de> for CreditsData
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 CreditsData
impl RefUnwindSafe for CreditsData
impl Send for CreditsData
impl Sync for CreditsData
impl Unpin for CreditsData
impl UnwindSafe for CreditsData
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