#[non_exhaustive]pub struct QuotaError {
pub code: Code,
pub subject: String,
pub description: String,
pub status: Option<Status>,
/* private fields */
}Expand description
Represents error information for QuotaOperation.
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.code: CodeError code.
subject: StringSubject to whom this error applies. See the specific enum for more details on this field. For example, “clientip:<ip address of client>” or “project:<Google developer project id>”.
description: StringFree-form text that provides details on the cause of the error.
status: Option<Status>Contains additional information about the quota error.
If available, status.code will be non zero.
Implementations§
Source§impl QuotaError
impl QuotaError
pub fn new() -> Self
Sourcepub fn set_subject<T: Into<String>>(self, v: T) -> Self
pub fn set_subject<T: Into<String>>(self, v: T) -> Self
Sets the value of subject.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sets the value of status.
Trait Implementations§
Source§impl Clone for QuotaError
impl Clone for QuotaError
Source§fn clone(&self) -> QuotaError
fn clone(&self) -> QuotaError
Returns a duplicate 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 PartialEq for QuotaError
impl PartialEq 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