Enum google_api_proto::google::ads::searchads360::v0::errors::quota_error_enum::QuotaError
source · #[repr(i32)]pub enum QuotaError {
Unspecified = 0,
Unknown = 1,
ResourceExhausted = 2,
ResourceTemporarilyExhausted = 4,
}
Expand description
Enum describing possible quota errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
ResourceExhausted = 2
Too many requests.
ResourceTemporarilyExhausted = 4
Too many requests in a short amount of time.
Implementations§
source§impl QuotaError
impl QuotaError
source§impl QuotaError
impl QuotaError
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 Clone for QuotaError
impl Clone for QuotaError
source§fn clone(&self) -> QuotaError
fn clone(&self) -> QuotaError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QuotaError
impl Debug for QuotaError
source§impl Default for QuotaError
impl Default for QuotaError
source§fn default() -> QuotaError
fn default() -> QuotaError
Returns the “default value” for a type. Read more
source§impl From<QuotaError> for i32
impl From<QuotaError> for i32
source§fn from(value: QuotaError) -> i32
fn from(value: QuotaError) -> i32
Converts to this type from the input type.
source§impl Hash for QuotaError
impl Hash for QuotaError
source§impl Ord for QuotaError
impl Ord for QuotaError
source§fn cmp(&self, other: &QuotaError) -> Ordering
fn cmp(&self, other: &QuotaError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QuotaError
impl PartialEq for QuotaError
source§fn eq(&self, other: &QuotaError) -> bool
fn eq(&self, other: &QuotaError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for QuotaError
impl PartialOrd for QuotaError
source§fn partial_cmp(&self, other: &QuotaError) -> Option<Ordering>
fn partial_cmp(&self, other: &QuotaError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for QuotaError
impl TryFrom<i32> for QuotaError
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<QuotaError, DecodeError>
fn try_from(value: i32) -> Result<QuotaError, DecodeError>
Performs the conversion.
impl Copy for QuotaError
impl Eq for QuotaError
impl StructuralPartialEq for QuotaError
Auto Trait Implementations§
impl Freeze for QuotaError
impl RefUnwindSafe for QuotaError
impl Send for QuotaError
impl Sync for QuotaError
impl Unpin for QuotaError
impl UnwindSafe for QuotaError
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
Mutably borrows from an owned value. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request