#[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.impl StructuralPartialEq for GetUsageTotalsOutput
Auto Trait Implementations§
impl Freeze for GetUsageTotalsOutput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more