pub struct ErrorResponseItem {
pub domain: String,
pub location: Option<String>,
pub location_type: Option<String>,
pub message: String,
pub reason: String,
}Fields§
§domain: StringThe scope of the error. Example values include: global and push.
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.
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.
message: StringDescription of the error.
Example values include Invalid argument, Login required, and
Required parameter: project.
reason: StringExample values include invalid, invalidParameter, and required.
Trait Implementations§
Source§impl Debug for ErrorResponseItem
impl Debug for ErrorResponseItem
Source§impl<'de> Deserialize<'de> for ErrorResponseItem
impl<'de> Deserialize<'de> for ErrorResponseItem
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>,
Auto Trait Implementations§
impl Freeze for ErrorResponseItem
impl RefUnwindSafe for ErrorResponseItem
impl Send for ErrorResponseItem
impl Sync for ErrorResponseItem
impl Unpin for ErrorResponseItem
impl UnwindSafe for ErrorResponseItem
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.