#[non_exhaustive]pub struct QuotaFailure {
pub violations: Vec<Violation>,
}Expand description
Describes how a quota check failed.
For example if a daily limit was exceeded for the calling project,
a service could respond with a QuotaFailure detail containing the project
id and the description of the quota limit that was exceeded. If the
calling project hasn’t enabled the service in the developer console, then
a service could respond with the project id and set service_disabled
to true.
Also see RetryInfo and Help types for other details about handling a quota failure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.violations: Vec<Violation>Describes all quota violations.
Implementations§
Source§impl QuotaFailure
impl QuotaFailure
Sourcepub fn set_violations<T: Into<Vec<Violation>>>(self, v: T) -> Self
pub fn set_violations<T: Into<Vec<Violation>>>(self, v: T) -> Self
Sets the value of violations.
Trait Implementations§
Source§impl Clone for QuotaFailure
impl Clone for QuotaFailure
Source§fn clone(&self) -> QuotaFailure
fn clone(&self) -> QuotaFailure
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 QuotaFailure
impl Debug for QuotaFailure
Source§impl Default for QuotaFailure
impl Default for QuotaFailure
Source§fn default() -> QuotaFailure
fn default() -> QuotaFailure
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QuotaFailurewhere
QuotaFailure: Default,
impl<'de> Deserialize<'de> for QuotaFailurewhere
QuotaFailure: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QuotaFailure
impl PartialEq for QuotaFailure
Source§impl Serialize for QuotaFailure
impl Serialize for QuotaFailure
impl StructuralPartialEq for QuotaFailure
Auto Trait Implementations§
impl Freeze for QuotaFailure
impl RefUnwindSafe for QuotaFailure
impl Send for QuotaFailure
impl Sync for QuotaFailure
impl Unpin for QuotaFailure
impl UnwindSafe for QuotaFailure
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