Struct cloud_storage::GoogleError
source · [−]pub struct GoogleError {
pub domain: String,
pub reason: Reason,
pub message: String,
pub location_type: Option<String>,
pub location: Option<String>,
}
Expand description
Google Error structure
Fields
domain: String
The scope of the error. Example values include: global and push.
reason: Reason
Example values include invalid
, invalidParameter
, and required
.
message: String
Description of the error.
Example values include Invalid argument
, Login required
, and Required parameter: project
.
location_type: Option<String>
The location or part of the request that caused the error. Use with location
to pinpoint
the error. For example, if you specify an invalid value for a parameter, the locationType
will be parameter and the location will be the name of the parameter.
Example values include header
and parameter
.
location: Option<String>
The specific item within the locationType
that caused the error. For example, if you
specify an invalid value for a parameter, the location
will be the name of the parameter.
Example values include: Authorization
, project
, and projection
.
Implementations
Trait Implementations
sourceimpl Debug for GoogleError
impl Debug for GoogleError
sourceimpl<'de> Deserialize<'de> for GoogleError
impl<'de> Deserialize<'de> for GoogleError
sourcefn 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
sourceimpl Display for GoogleError
impl Display for GoogleError
sourceimpl Error for GoogleError
impl Error for GoogleError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for GoogleError
impl Send for GoogleError
impl Sync for GoogleError
impl Unpin for GoogleError
impl UnwindSafe for GoogleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more