Struct google_api_proto::google::api::serviceusage::v1beta1::ConsumerQuotaLimit
source · pub struct ConsumerQuotaLimit {
pub name: String,
pub metric: String,
pub unit: String,
pub is_precise: bool,
pub allows_admin_overrides: bool,
pub quota_buckets: Vec<QuotaBucket>,
pub supported_locations: Vec<String>,
}
Expand description
Consumer quota settings for a quota limit.
Fields§
§name: String
The resource name of the quota limit.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion
The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
metric: String
The name of the parent metric of this limit.
An example name would be:
compute.googleapis.com/cpus
unit: String
The limit unit.
An example unit would be
1/{project}/{region}
Note that {project}
and {region}
are not placeholders in this example;
the literal characters {
and }
occur in the string.
is_precise: bool
Whether this limit is precise or imprecise.
allows_admin_overrides: bool
Whether admin overrides are allowed on this limit
quota_buckets: Vec<QuotaBucket>
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
supported_locations: Vec<String>
List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension.
Trait Implementations§
source§impl Clone for ConsumerQuotaLimit
impl Clone for ConsumerQuotaLimit
source§fn clone(&self) -> ConsumerQuotaLimit
fn clone(&self) -> ConsumerQuotaLimit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConsumerQuotaLimit
impl Debug for ConsumerQuotaLimit
source§impl Default for ConsumerQuotaLimit
impl Default for ConsumerQuotaLimit
source§impl Message for ConsumerQuotaLimit
impl Message for ConsumerQuotaLimit
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConsumerQuotaLimit
impl PartialEq for ConsumerQuotaLimit
source§fn eq(&self, other: &ConsumerQuotaLimit) -> bool
fn eq(&self, other: &ConsumerQuotaLimit) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConsumerQuotaLimit
Auto Trait Implementations§
impl Freeze for ConsumerQuotaLimit
impl RefUnwindSafe for ConsumerQuotaLimit
impl Send for ConsumerQuotaLimit
impl Sync for ConsumerQuotaLimit
impl Unpin for ConsumerQuotaLimit
impl UnwindSafe for ConsumerQuotaLimit
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request