Struct google_api_proto::google::api::serviceusage::v1beta1::QuotaBucket
source · pub struct QuotaBucket {
pub effective_limit: i64,
pub default_limit: i64,
pub producer_override: Option<QuotaOverride>,
pub consumer_override: Option<QuotaOverride>,
pub admin_override: Option<QuotaOverride>,
pub producer_quota_policy: Option<ProducerQuotaPolicy>,
pub dimensions: BTreeMap<String, String>,
}
Expand description
A quota bucket is a quota provisioning unit for a specific set of dimensions.
Fields§
§effective_limit: i64
The effective limit of this quota bucket. Equal to default_limit if there are no overrides.
default_limit: i64
The default limit of this quota bucket, as specified by the service configuration.
producer_override: Option<QuotaOverride>
Producer override on this quota bucket.
consumer_override: Option<QuotaOverride>
Consumer override on this quota bucket.
admin_override: Option<QuotaOverride>
Admin override on this quota bucket.
producer_quota_policy: Option<ProducerQuotaPolicy>
Producer policy inherited from the closet ancestor of the current consumer.
dimensions: BTreeMap<String, String>
The dimensions of this quota bucket.
If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific override.
If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map.
For example, if the map has key region
and value us-east-1
, then the
specified effective limit is only effective in that region, and the
specified overrides apply only in that region.
Trait Implementations§
source§impl Clone for QuotaBucket
impl Clone for QuotaBucket
source§fn clone(&self) -> QuotaBucket
fn clone(&self) -> QuotaBucket
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaBucket
impl Debug for QuotaBucket
source§impl Default for QuotaBucket
impl Default for QuotaBucket
source§impl Message for QuotaBucket
impl Message for QuotaBucket
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 QuotaBucket
impl PartialEq for QuotaBucket
source§fn eq(&self, other: &QuotaBucket) -> bool
fn eq(&self, other: &QuotaBucket) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaBucket
Auto Trait Implementations§
impl Freeze for QuotaBucket
impl RefUnwindSafe for QuotaBucket
impl Send for QuotaBucket
impl Sync for QuotaBucket
impl Unpin for QuotaBucket
impl UnwindSafe for QuotaBucket
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