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§
Source§impl Debug for GoogleError
impl Debug for GoogleError
Source§impl<'de> Deserialize<'de> for GoogleError
impl<'de> Deserialize<'de> for GoogleError
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>,
Source§impl Display for GoogleError
impl Display for GoogleError
Source§impl Error for GoogleError
impl Error for GoogleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for GoogleError
impl RefUnwindSafe for GoogleError
impl Send for GoogleError
impl Sync for GoogleError
impl Unpin for GoogleError
impl UnwindSafe for GoogleError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more