pub struct XApiUsageSummary {
pub cost_today: f64,
pub cost_7d: f64,
pub cost_30d: f64,
pub cost_all_time: f64,
pub calls_today: i64,
pub calls_7d: i64,
pub calls_30d: i64,
pub calls_all_time: i64,
}Expand description
Summary of X API usage across multiple time windows.
Fields§
§cost_today: f64§cost_7d: f64§cost_30d: f64§cost_all_time: f64§calls_today: i64§calls_7d: i64§calls_30d: i64§calls_all_time: i64Trait Implementations§
Source§impl Debug for XApiUsageSummary
impl Debug for XApiUsageSummary
Auto Trait Implementations§
impl Freeze for XApiUsageSummary
impl RefUnwindSafe for XApiUsageSummary
impl Send for XApiUsageSummary
impl Sync for XApiUsageSummary
impl Unpin for XApiUsageSummary
impl UnsafeUnpin for XApiUsageSummary
impl UnwindSafe for XApiUsageSummary
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more