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<GetUsageOutput> for GetUsageOutput
impl PartialEq<GetUsageOutput> 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.