#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[PatchOperation]>
pub fn patch_operations(&self) -> Option<&[PatchOperation]>
For more information about supported patch operations, see Patch Operations.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpdateUsageInput
impl Debug for UpdateUsageInput
source§impl PartialEq<UpdateUsageInput> for UpdateUsageInput
impl PartialEq<UpdateUsageInput> for UpdateUsageInput
source§fn eq(&self, other: &UpdateUsageInput) -> bool
fn eq(&self, other: &UpdateUsageInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateUsageInput
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more