#[non_exhaustive]pub struct UsageWindow {
pub id: String,
pub used_percent: Option<f64>,
pub window_minutes: Option<u64>,
pub resets_at: Option<i64>,
}Expand description
One quota window and how much of it is gone.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe provider’s own name for this window, e.g. primary.
used_percent: Option<f64>Share of the window consumed, 0 to 100, as the provider reported it.
window_minutes: Option<u64>How long the window runs. Codex reports 10080 minutes for a week.
resets_at: Option<i64>Unix epoch seconds at which it resets.
Trait Implementations§
Source§impl Clone for UsageWindow
impl Clone for UsageWindow
Source§fn clone(&self) -> UsageWindow
fn clone(&self) -> UsageWindow
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 UsageWindow
impl Debug for UsageWindow
Source§impl<'de> Deserialize<'de> for UsageWindow
impl<'de> Deserialize<'de> for UsageWindow
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 UsageWindow
impl PartialEq for UsageWindow
Source§impl Serialize for UsageWindow
impl Serialize for UsageWindow
impl StructuralPartialEq for UsageWindow
Auto Trait Implementations§
impl Freeze for UsageWindow
impl RefUnwindSafe for UsageWindow
impl Send for UsageWindow
impl Sync for UsageWindow
impl Unpin for UsageWindow
impl UnsafeUnpin for UsageWindow
impl UnwindSafe for UsageWindow
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