pub struct AccountWindowResponse {
pub model_scope: Option<String>,
pub observed_at: DateTime<Utc>,
pub resets_at: Option<DateTime<Utc>>,
pub status: AccountWindowStatus,
pub utilization: f64,
pub window: String,
}Expand description
One usage window of an account.
JSON schema
{
"description": "One usage window of an account.",
"type": "object",
"required": [
"observed_at",
"status",
"utilization",
"window"
],
"properties": {
"model_scope": {
"description": "Model family the window applies to, `null` for every model.",
"type": [
"string",
"null"
]
},
"observed_at": {
"description": "When the window was observed.",
"type": "string",
"format": "date-time"
},
"resets_at": {
"description": "When the window resets.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"status": {
"$ref": "#/components/schemas/AccountWindowStatus"
},
"utilization": {
"description": "Fraction used, `0.0..=1.0`.",
"type": "number",
"format": "double"
},
"window": {
"description": "Window name (`five_hour`, `seven_day`).",
"type": "string"
}
}
}
```ignore
</details>Fields§
§model_scope: Option<String>Model family the window applies to, null for every model.
observed_at: DateTime<Utc>When the window was observed.
resets_at: Option<DateTime<Utc>>When the window resets.
status: AccountWindowStatus§utilization: f64Fraction used, 0.0..=1.0.
window: StringWindow name (five_hour, seven_day).
Implementations§
Source§impl AccountWindowResponse
impl AccountWindowResponse
pub fn builder() -> AccountWindowResponse
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<AccountWindowResponse> for AccountWindowResponse
impl From<AccountWindowResponse> for AccountWindowResponse
Source§fn from(value: AccountWindowResponse) -> Self
fn from(value: AccountWindowResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for AccountWindowResponse
impl Serialize for AccountWindowResponse
Source§impl TryFrom<AccountWindowResponse> for AccountWindowResponse
impl TryFrom<AccountWindowResponse> for AccountWindowResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AccountWindowResponse) -> Result<Self, ConversionError>
fn try_from(value: AccountWindowResponse) -> Result<Self, ConversionError>
Performs the conversion.
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