Struct aws_sdk_apigateway::operation::get_usage::GetUsageOutput
source · #[non_exhaustive]pub struct GetUsageOutput {
pub usage_plan_id: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub items: Option<HashMap<String, Vec<Vec<i64>>>>,
pub position: Option<String>,
/* private fields */
}Expand description
Represents the usage data of a usage plan.
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.usage_plan_id: Option<String>The plan Id associated with this usage data.
start_date: Option<String>The starting date of the usage data.
end_date: Option<String>The ending date of the usage data.
items: Option<HashMap<String, Vec<Vec<i64>>>>The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].
position: Option<String>The current pagination position in the paged result set.
Implementations§
source§impl GetUsageOutput
impl GetUsageOutput
sourcepub fn usage_plan_id(&self) -> Option<&str>
pub fn usage_plan_id(&self) -> Option<&str>
The plan Id associated with this usage data.
sourcepub fn start_date(&self) -> Option<&str>
pub fn start_date(&self) -> Option<&str>
The starting date of the usage data.
sourcepub fn items(&self) -> Option<&HashMap<String, Vec<Vec<i64>>>>
pub fn items(&self) -> Option<&HashMap<String, Vec<Vec<i64>>>>
The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].
source§impl GetUsageOutput
impl GetUsageOutput
sourcepub fn builder() -> GetUsageOutputBuilder
pub fn builder() -> GetUsageOutputBuilder
Creates a new builder-style object to manufacture GetUsageOutput.
Trait Implementations§
source§impl Clone for GetUsageOutput
impl Clone for GetUsageOutput
source§fn clone(&self) -> GetUsageOutput
fn clone(&self) -> GetUsageOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUsageOutput
impl Debug for GetUsageOutput
source§impl PartialEq for GetUsageOutput
impl PartialEq for GetUsageOutput
source§fn eq(&self, other: &GetUsageOutput) -> bool
fn eq(&self, other: &GetUsageOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for GetUsageOutput
impl RequestId for GetUsageOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetUsageOutput
Auto Trait Implementations§
impl Freeze for GetUsageOutput
impl RefUnwindSafe for GetUsageOutput
impl Send for GetUsageOutput
impl Sync for GetUsageOutput
impl Unpin for GetUsageOutput
impl UnwindSafe for GetUsageOutput
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