pub struct ProviderBillableUsage {
pub used: String,
pub limit: String,
pub remaining_percent: f64,
pub resets_at_epoch_seconds: i64,
}Expand description
Optional billable or spend-controlled usage reported by a provider.
Fields§
§used: StringProvider-formatted amount consumed in the current billing window.
limit: StringProvider-formatted limit for the current billing window.
remaining_percent: f64Remaining billable capacity from zero to one hundred.
resets_at_epoch_seconds: i64Billing-window reset time in Unix epoch seconds.
Trait Implementations§
Source§impl Clone for ProviderBillableUsage
impl Clone for ProviderBillableUsage
Source§impl Debug for ProviderBillableUsage
impl Debug for ProviderBillableUsage
Source§impl<'de> Deserialize<'de> for ProviderBillableUsage
impl<'de> Deserialize<'de> for ProviderBillableUsage
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
Source§impl PartialEq for ProviderBillableUsage
impl PartialEq for ProviderBillableUsage
Source§impl Serialize for ProviderBillableUsage
impl Serialize for ProviderBillableUsage
impl StructuralPartialEq for ProviderBillableUsage
Auto Trait Implementations§
impl Freeze for ProviderBillableUsage
impl RefUnwindSafe for ProviderBillableUsage
impl Send for ProviderBillableUsage
impl Sync for ProviderBillableUsage
impl Unpin for ProviderBillableUsage
impl UnsafeUnpin for ProviderBillableUsage
impl UnwindSafe for ProviderBillableUsage
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