pub struct AccountWindowResponse {
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
One usage window of an account.
Fields§
§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, null for every model.
observed_at: DateTime<Utc>When the window was observed.
Trait Implementations§
Source§impl Clone for AccountWindowResponse
impl Clone for AccountWindowResponse
Source§impl Debug for AccountWindowResponse
impl Debug for AccountWindowResponse
Source§impl<'de> Deserialize<'de> for AccountWindowResponse
impl<'de> Deserialize<'de> for AccountWindowResponse
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 From<ProviderAccountWindow> for AccountWindowResponse
impl From<ProviderAccountWindow> for AccountWindowResponse
Source§fn from(w: ProviderAccountWindow) -> Self
fn from(w: ProviderAccountWindow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccountWindowResponse
impl RefUnwindSafe for AccountWindowResponse
impl Send for AccountWindowResponse
impl Sync for AccountWindowResponse
impl Unpin for AccountWindowResponse
impl UnsafeUnpin for AccountWindowResponse
impl UnwindSafe for AccountWindowResponse
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