Struct aws_sdk_apigateway::model::QuotaSettings [−][src]
#[non_exhaustive]pub struct QuotaSettings {
pub limit: i32,
pub offset: i32,
pub period: Option<QuotaPeriodType>,
}
Expand description
Quotas configured for 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.limit: i32
The target maximum number of requests that can be made in a given time period.
offset: i32
The day that a time period starts. For example, with a time period of WEEK
, an offset of 0
starts on Sunday, and an offset of 1
starts on Monday.
period: Option<QuotaPeriodType>
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
Implementations
The target maximum number of requests that can be made in a given time period.
The day that a time period starts. For example, with a time period of WEEK
, an offset of 0
starts on Sunday, and an offset of 1
starts on Monday.
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
Creates a new builder-style object to manufacture QuotaSettings
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for QuotaSettings
impl Send for QuotaSettings
impl Sync for QuotaSettings
impl Unpin for QuotaSettings
impl UnwindSafe for QuotaSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more