pub struct ProviderAccountWindow {
pub account_id: Uuid,
pub window: String,
pub utilization: f64,
pub resets_at: Option<DateTime<Utc>>,
pub status: AccountWindowStatus,
pub model_scope: Option<String>,
pub observed_at: DateTime<Utc>,
}Expand description
Latest reading of one usage window of an account.
Fields§
§account_id: UuidAccount the window belongs to.
window: StringWindow name (five_hour, seven_day).
utilization: f64Fraction used, 0.0..=1.0.
resets_at: Option<DateTime<Utc>>When the window resets.
status: AccountWindowStatusProvider status.
model_scope: Option<String>Model family the window applies to, None for every model.
observed_at: DateTime<Utc>When the window was observed.
Trait Implementations§
Source§impl Clone for ProviderAccountWindow
impl Clone for ProviderAccountWindow
Source§impl Debug for ProviderAccountWindow
impl Debug for ProviderAccountWindow
Source§impl<'de> Deserialize<'de> for ProviderAccountWindow
impl<'de> Deserialize<'de> for ProviderAccountWindow
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 ProviderAccountWindow
impl PartialEq for ProviderAccountWindow
Source§impl Serialize for ProviderAccountWindow
impl Serialize for ProviderAccountWindow
impl StructuralPartialEq for ProviderAccountWindow
Auto Trait Implementations§
impl Freeze for ProviderAccountWindow
impl RefUnwindSafe for ProviderAccountWindow
impl Send for ProviderAccountWindow
impl Sync for ProviderAccountWindow
impl Unpin for ProviderAccountWindow
impl UnsafeUnpin for ProviderAccountWindow
impl UnwindSafe for ProviderAccountWindow
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