pub struct ProviderAccountUsageResponse {
pub account_id: Uuid,
pub history: Vec<AccountUsagePointResponse>,
pub name: String,
pub windows: Vec<AccountWindowResponse>,
}Expand description
Current windows and history of an account.
JSON schema
{
"description": "Current windows and history of an account.",
"type": "object",
"required": [
"account_id",
"history",
"name",
"windows"
],
"properties": {
"account_id": {
"description": "Account ID.",
"type": "string",
"format": "uuid"
},
"history": {
"description": "Observations over the requested period, oldest first.",
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountUsagePointResponse"
}
},
"name": {
"description": "Account name.",
"type": "string"
},
"windows": {
"description": "Latest windows.",
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountWindowResponse"
}
}
}
}
```ignore
</details>Fields§
§account_id: UuidAccount ID.
history: Vec<AccountUsagePointResponse>Observations over the requested period, oldest first.
name: StringAccount name.
windows: Vec<AccountWindowResponse>Latest windows.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderAccountUsageResponse
impl Clone for ProviderAccountUsageResponse
Source§impl Debug for ProviderAccountUsageResponse
impl Debug for ProviderAccountUsageResponse
Source§impl<'de> Deserialize<'de> for ProviderAccountUsageResponse
impl<'de> Deserialize<'de> for ProviderAccountUsageResponse
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<ProviderAccountUsageResponse> for ProviderAccountUsageResponse
impl From<ProviderAccountUsageResponse> for ProviderAccountUsageResponse
Source§fn from(value: ProviderAccountUsageResponse) -> Self
fn from(value: ProviderAccountUsageResponse) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ProviderAccountUsageResponse> for ProviderAccountUsageResponse
impl TryFrom<ProviderAccountUsageResponse> for ProviderAccountUsageResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ProviderAccountUsageResponse,
) -> Result<Self, ConversionError>
fn try_from( value: ProviderAccountUsageResponse, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProviderAccountUsageResponse
impl RefUnwindSafe for ProviderAccountUsageResponse
impl Send for ProviderAccountUsageResponse
impl Sync for ProviderAccountUsageResponse
impl Unpin for ProviderAccountUsageResponse
impl UnsafeUnpin for ProviderAccountUsageResponse
impl UnwindSafe for ProviderAccountUsageResponse
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