#[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
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) -> &[UsageTotal]
pub fn usage_totals(&self) -> &[UsageTotal]
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .usage_totals.is_none().
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUsageTotalsOutput
impl Debug for GetUsageTotalsOutput
source§impl PartialEq for GetUsageTotalsOutput
impl PartialEq for GetUsageTotalsOutput
source§fn eq(&self, other: &GetUsageTotalsOutput) -> bool
fn eq(&self, other: &GetUsageTotalsOutput) -> bool
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>
None if the service could not be reached.