#[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 for UpdateUsageOutput
impl PartialEq 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.impl StructuralPartialEq for UpdateUsageOutput
Auto Trait Implementations§
impl Freeze for UpdateUsageOutput
impl RefUnwindSafe for UpdateUsageOutput
impl Send for UpdateUsageOutput
impl Sync for UpdateUsageOutput
impl Unpin for UpdateUsageOutput
impl UnwindSafe for UpdateUsageOutput
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