#[non_exhaustive]pub struct UpdateUsageOutput {
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 UpdateUsageOutput
impl UpdateUsageOutput
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 UpdateUsageOutput
impl UpdateUsageOutput
sourcepub fn builder() -> UpdateUsageOutputBuilder
pub fn builder() -> UpdateUsageOutputBuilder
Creates a new builder-style object to manufacture UpdateUsageOutput
.
Trait Implementations§
source§impl Clone for UpdateUsageOutput
impl Clone for UpdateUsageOutput
source§fn clone(&self) -> UpdateUsageOutput
fn clone(&self) -> UpdateUsageOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateUsageOutput
impl Debug for UpdateUsageOutput
source§impl PartialEq<UpdateUsageOutput> for UpdateUsageOutput
impl PartialEq<UpdateUsageOutput> for UpdateUsageOutput
source§fn eq(&self, other: &UpdateUsageOutput) -> bool
fn eq(&self, other: &UpdateUsageOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for UpdateUsageOutput
impl RequestId for UpdateUsageOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.