Enum google_api_proto::google::api::serviceusage::v1beta1::QuotaView
source · #[repr(i32)]pub enum QuotaView {
Unspecified = 0,
Basic = 1,
Full = 2,
}
Expand description
Selected view of quota. Can be used to request more detailed quota information when retrieving quota metrics and limits.
Variants§
Unspecified = 0
No quota view specified. Requests that do not specify a quota view will typically default to the BASIC view.
Basic = 1
Only buckets with overrides are shown in the response.
Full = 2
Include per-location buckets even if they do not have overrides. When the view is FULL, and a limit has regional or zonal quota, the limit will include buckets for all regions or zones that could support overrides, even if none are currently present. In some cases this will cause the response to become very large; callers that do not need this extra information should use the BASIC view instead.
Implementations§
source§impl QuotaView
impl QuotaView
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for QuotaView
impl Ord for QuotaView
source§impl PartialEq for QuotaView
impl PartialEq for QuotaView
source§impl PartialOrd for QuotaView
impl PartialOrd for QuotaView
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for QuotaView
impl TryFrom<i32> for QuotaView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for QuotaView
impl Eq for QuotaView
impl StructuralPartialEq for QuotaView
Auto Trait Implementations§
impl Freeze for QuotaView
impl RefUnwindSafe for QuotaView
impl Send for QuotaView
impl Sync for QuotaView
impl Unpin for QuotaView
impl UnwindSafe for QuotaView
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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