pub struct UsageFields {
pub per5_hour_percentage: Option<f64>,
pub per1_week_percentage: Option<f64>,
pub per5_hour_reset_ms: Option<i64>,
pub per1_week_reset_ms: Option<i64>,
}Expand description
The usage fields the Token Plan response carries. All optional: a missing percentage means the account has no such window (possibly unlimited), and the renderer must show the window as absent — never as 0%.
Fields§
§per5_hour_percentage: Option<f64>§per1_week_percentage: Option<f64>§per5_hour_reset_ms: Option<i64>§per1_week_reset_ms: Option<i64>Implementations§
Source§impl UsageFields
impl UsageFields
pub fn to_snapshot(&self) -> Result<ModelStudioSnapshot>
Trait Implementations§
Source§impl Clone for UsageFields
impl Clone for UsageFields
impl Copy for UsageFields
Source§impl Debug for UsageFields
impl Debug for UsageFields
Source§impl PartialEq for UsageFields
impl PartialEq for UsageFields
impl StructuralPartialEq for UsageFields
Auto Trait Implementations§
impl Freeze for UsageFields
impl RefUnwindSafe for UsageFields
impl Send for UsageFields
impl Sync for UsageFields
impl Unpin for UsageFields
impl UnsafeUnpin for UsageFields
impl UnwindSafe for UsageFields
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,
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