#[non_exhaustive]pub struct GetUsageTotalsOutput {
pub time_range: Option<TimeRange>,
pub usage_totals: Option<Vec<UsageTotal>>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.time_range: Option<TimeRange>
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
usage_totals: Option<Vec<UsageTotal>>
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
Implementations§
source§impl GetUsageTotalsOutput
impl GetUsageTotalsOutput
sourcepub fn time_range(&self) -> Option<&TimeRange>
pub fn time_range(&self) -> Option<&TimeRange>
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
sourcepub fn usage_totals(&self) -> Option<&[UsageTotal]>
pub fn usage_totals(&self) -> Option<&[UsageTotal]>
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
source§impl GetUsageTotalsOutput
impl GetUsageTotalsOutput
sourcepub fn builder() -> GetUsageTotalsOutputBuilder
pub fn builder() -> GetUsageTotalsOutputBuilder
Creates a new builder-style object to manufacture GetUsageTotalsOutput
.
Trait Implementations§
source§impl Clone for GetUsageTotalsOutput
impl Clone for GetUsageTotalsOutput
source§fn clone(&self) -> GetUsageTotalsOutput
fn clone(&self) -> GetUsageTotalsOutput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetUsageTotalsOutput
impl Debug for GetUsageTotalsOutput
source§impl PartialEq<GetUsageTotalsOutput> for GetUsageTotalsOutput
impl PartialEq<GetUsageTotalsOutput> for GetUsageTotalsOutput
source§fn eq(&self, other: &GetUsageTotalsOutput) -> bool
fn eq(&self, other: &GetUsageTotalsOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetUsageTotalsOutput
impl RequestId for GetUsageTotalsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.impl StructuralPartialEq for GetUsageTotalsOutput
Auto Trait Implementations§
impl RefUnwindSafe for GetUsageTotalsOutput
impl Send for GetUsageTotalsOutput
impl Sync for GetUsageTotalsOutput
impl Unpin for GetUsageTotalsOutput
impl UnwindSafe for GetUsageTotalsOutput
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