pub struct Usage<'a> { /* private fields */ }Expand description
Usage resource — credit balance and daily usage breakdown.
Implementations§
Source§impl<'a> Usage<'a>
impl<'a> Usage<'a>
Sourcepub async fn summary(
&self,
days: Option<i32>,
) -> Result<UsageSummary, VynFiError>
pub async fn summary( &self, days: Option<i32>, ) -> Result<UsageSummary, VynFiError>
Get the current credit usage summary (balance, totals, burn rate).
Sourcepub async fn daily(
&self,
days: Option<i32>,
) -> Result<DailyUsageResponse, VynFiError>
pub async fn daily( &self, days: Option<i32>, ) -> Result<DailyUsageResponse, VynFiError>
Get daily credit usage. Optionally specify the number of days to look back (defaults to server-side default, typically 30).
Auto Trait Implementations§
impl<'a> Freeze for Usage<'a>
impl<'a> !RefUnwindSafe for Usage<'a>
impl<'a> Send for Usage<'a>
impl<'a> Sync for Usage<'a>
impl<'a> Unpin for Usage<'a>
impl<'a> UnsafeUnpin for Usage<'a>
impl<'a> !UnwindSafe for Usage<'a>
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