#[non_exhaustive]pub struct UpdateUsageInput {
pub usage_plan_id: Option<String>,
pub key_id: Option<String>,
pub patch_operations: Option<Vec<PatchOperation>>,
}Expand description
The PATCH request to grant a temporary extension to the remaining quota of a usage plan associated with a specified API key.
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 Id of the usage plan associated with the usage data.
key_id: Option<String>The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.
patch_operations: Option<Vec<PatchOperation>>For more information about supported patch operations, see Patch Operations.
Implementations§
source§impl UpdateUsageInput
impl UpdateUsageInput
sourcepub fn usage_plan_id(&self) -> Option<&str>
pub fn usage_plan_id(&self) -> Option<&str>
The Id of the usage plan associated with the usage data.
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.
sourcepub fn patch_operations(&self) -> &[PatchOperation]
pub fn patch_operations(&self) -> &[PatchOperation]
For more information about supported patch operations, see Patch Operations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .patch_operations.is_none().
source§impl UpdateUsageInput
impl UpdateUsageInput
sourcepub fn builder() -> UpdateUsageInputBuilder
pub fn builder() -> UpdateUsageInputBuilder
Creates a new builder-style object to manufacture UpdateUsageInput.
Trait Implementations§
source§impl Clone for UpdateUsageInput
impl Clone for UpdateUsageInput
source§fn clone(&self) -> UpdateUsageInput
fn clone(&self) -> UpdateUsageInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateUsageInput
impl Debug for UpdateUsageInput
source§impl PartialEq for UpdateUsageInput
impl PartialEq for UpdateUsageInput
source§fn eq(&self, other: &UpdateUsageInput) -> bool
fn eq(&self, other: &UpdateUsageInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateUsageInput
Auto Trait Implementations§
impl Freeze for UpdateUsageInput
impl RefUnwindSafe for UpdateUsageInput
impl Send for UpdateUsageInput
impl Sync for UpdateUsageInput
impl Unpin for UpdateUsageInput
impl UnwindSafe for UpdateUsageInput
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