pub struct AccountUsagePointResponse {
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 historical observation of a window.
JSON schema
{
"description": "One historical observation of a window.",
"type": "object",
"required": [
"observed_at",
"status",
"utilization",
"window"
],
"properties": {
"model_scope": {
"description": "Model scope.",
"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.",
"type": "number",
"format": "double"
},
"window": {
"description": "Window name.",
"type": "string"
}
}
}
```ignore
</details>Fields§
§model_scope: Option<String>Model scope.
observed_at: DateTime<Utc>When the window was observed.
resets_at: Option<DateTime<Utc>>When the window resets.
status: AccountWindowStatus§utilization: f64Fraction used.
window: StringWindow name.
Implementations§
Source§impl AccountUsagePointResponse
impl AccountUsagePointResponse
pub fn builder() -> AccountUsagePointResponse
Trait Implementations§
Source§impl Clone for AccountUsagePointResponse
impl Clone for AccountUsagePointResponse
Source§impl Debug for AccountUsagePointResponse
impl Debug for AccountUsagePointResponse
Source§impl<'de> Deserialize<'de> for AccountUsagePointResponse
impl<'de> Deserialize<'de> for AccountUsagePointResponse
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<AccountUsagePointResponse> for AccountUsagePointResponse
impl From<AccountUsagePointResponse> for AccountUsagePointResponse
Source§fn from(value: AccountUsagePointResponse) -> Self
fn from(value: AccountUsagePointResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<AccountUsagePointResponse> for AccountUsagePointResponse
impl TryFrom<AccountUsagePointResponse> for AccountUsagePointResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AccountUsagePointResponse) -> Result<Self, ConversionError>
fn try_from(value: AccountUsagePointResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AccountUsagePointResponse
impl RefUnwindSafe for AccountUsagePointResponse
impl Send for AccountUsagePointResponse
impl Sync for AccountUsagePointResponse
impl Unpin for AccountUsagePointResponse
impl UnsafeUnpin for AccountUsagePointResponse
impl UnwindSafe for AccountUsagePointResponse
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