Struct google_api_proto::google::api::serviceusage::v1beta1::ConsumerQuotaMetric
source · pub struct ConsumerQuotaMetric {
pub name: String,
pub metric: String,
pub display_name: String,
pub consumer_quota_limits: Vec<ConsumerQuotaLimit>,
pub descendant_consumer_quota_limits: Vec<ConsumerQuotaLimit>,
pub unit: String,
}
Expand description
Consumer quota settings for a quota metric.
Fields§
§name: String
The resource name of the quota settings on this metric for this consumer.
An example name would be:
projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus
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 metric.
An example name would be:
compute.googleapis.com/cpus
display_name: String
The display name of the metric.
An example name would be:
CPUs
consumer_quota_limits: Vec<ConsumerQuotaLimit>
The consumer quota for each quota limit defined on the metric.
descendant_consumer_quota_limits: Vec<ConsumerQuotaLimit>
The quota limits targeting the descendant containers of the consumer in request.
If the consumer in request is of type organizations
or folders
, the field will list per-project limits in the metric; if the
consumer in request is of type project
, the field will be empty.
The quota_buckets
field of each descendant consumer quota limit will not
be populated.
unit: String
The units in which the metric value is reported.
Trait Implementations§
source§impl Clone for ConsumerQuotaMetric
impl Clone for ConsumerQuotaMetric
source§fn clone(&self) -> ConsumerQuotaMetric
fn clone(&self) -> ConsumerQuotaMetric
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConsumerQuotaMetric
impl Debug for ConsumerQuotaMetric
source§impl Default for ConsumerQuotaMetric
impl Default for ConsumerQuotaMetric
source§impl Message for ConsumerQuotaMetric
impl Message for ConsumerQuotaMetric
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 ConsumerQuotaMetric
impl PartialEq for ConsumerQuotaMetric
source§fn eq(&self, other: &ConsumerQuotaMetric) -> bool
fn eq(&self, other: &ConsumerQuotaMetric) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConsumerQuotaMetric
Auto Trait Implementations§
impl Freeze for ConsumerQuotaMetric
impl RefUnwindSafe for ConsumerQuotaMetric
impl Send for ConsumerQuotaMetric
impl Sync for ConsumerQuotaMetric
impl Unpin for ConsumerQuotaMetric
impl UnwindSafe for ConsumerQuotaMetric
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