pub struct ModelRemains {
pub model_name: String,
pub start_time: i64,
pub end_time: i64,
pub current_interval_remaining_percent: i64,
pub weekly_start_time: i64,
pub weekly_end_time: i64,
pub current_weekly_remaining_percent: i64,
}Expand description
One model bucket’s quota. The *_count fields are request counters that
only some buckets populate (general reports zeros and is governed by the
percentages), so they are not part of the snapshot.
Fields§
§model_name: String§start_time: i64Rolling interval window, epoch milliseconds.
end_time: i64§current_interval_remaining_percent: i64Percentage of the interval quota still available (0..=100).
weekly_start_time: i64Weekly window, epoch milliseconds.
weekly_end_time: i64§current_weekly_remaining_percent: i64Percentage of the weekly quota still available (0..=100).
Trait Implementations§
Source§impl Clone for ModelRemains
impl Clone for ModelRemains
Source§fn clone(&self) -> ModelRemains
fn clone(&self) -> ModelRemains
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelRemains
impl Debug for ModelRemains
Source§impl<'de> Deserialize<'de> for ModelRemains
impl<'de> Deserialize<'de> for ModelRemains
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 ModelRemains
impl RefUnwindSafe for ModelRemains
impl Send for ModelRemains
impl Sync for ModelRemains
impl Unpin for ModelRemains
impl UnsafeUnpin for ModelRemains
impl UnwindSafe for ModelRemains
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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