pub struct UsageData {
pub credits_used: i64,
pub credits_remaining: Option<i64>,
pub limit: Option<i64>,
pub overages: Option<i64>,
pub start_time: i64,
pub end_time: i64,
}Expand description
Aggregate account usage for a time window.
Fields§
§credits_used: i64Credits consumed during the window.
credits_remaining: Option<i64>Credits still available, when the plan has a finite limit.
limit: Option<i64>Plan’s credit limit, when applicable.
overages: Option<i64>Credits consumed beyond the plan limit.
start_time: i64Start of the queried window.
end_time: i64End of the queried window.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageData
impl<'de> Deserialize<'de> for UsageData
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 UsageData
impl RefUnwindSafe for UsageData
impl Send for UsageData
impl Sync for UsageData
impl Unpin for UsageData
impl UnsafeUnpin for UsageData
impl UnwindSafe for UsageData
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