Struct aws_sdk_servicequotas::types::QuotaContextInfo
source · #[non_exhaustive]pub struct QuotaContextInfo {
pub context_scope: Option<QuotaContextScope>,
pub context_scope_type: Option<String>,
pub context_id: Option<String>,
}
Expand description
A structure that describes the context for a service quota. The context identifies what the quota applies to.
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.context_scope: Option<QuotaContextScope>
Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
context_scope_type: Option<String>
When the ContextScope
is RESOURCE
, then this specifies the resource type of the specified resource.
context_id: Option<String>
Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
Implementations§
source§impl QuotaContextInfo
impl QuotaContextInfo
sourcepub fn context_scope(&self) -> Option<&QuotaContextScope>
pub fn context_scope(&self) -> Option<&QuotaContextScope>
Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
sourcepub fn context_scope_type(&self) -> Option<&str>
pub fn context_scope_type(&self) -> Option<&str>
When the ContextScope
is RESOURCE
, then this specifies the resource type of the specified resource.
sourcepub fn context_id(&self) -> Option<&str>
pub fn context_id(&self) -> Option<&str>
Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
source§impl QuotaContextInfo
impl QuotaContextInfo
sourcepub fn builder() -> QuotaContextInfoBuilder
pub fn builder() -> QuotaContextInfoBuilder
Creates a new builder-style object to manufacture QuotaContextInfo
.
Trait Implementations§
source§impl Clone for QuotaContextInfo
impl Clone for QuotaContextInfo
source§fn clone(&self) -> QuotaContextInfo
fn clone(&self) -> QuotaContextInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaContextInfo
impl Debug for QuotaContextInfo
source§impl PartialEq for QuotaContextInfo
impl PartialEq for QuotaContextInfo
source§fn eq(&self, other: &QuotaContextInfo) -> bool
fn eq(&self, other: &QuotaContextInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaContextInfo
Auto Trait Implementations§
impl Freeze for QuotaContextInfo
impl RefUnwindSafe for QuotaContextInfo
impl Send for QuotaContextInfo
impl Sync for QuotaContextInfo
impl Unpin for QuotaContextInfo
impl UnwindSafe for QuotaContextInfo
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