pub struct ErrorDetail {
pub code: Option<String>,
pub message: Option<String>,
pub target: Option<String>,
pub details: Vec<ErrorDetail>,
pub inner_error: Option<InnerError>,
pub additional_properties: HashMap<String, Value>,
}Available on crate feature
export-azure only.Expand description
Details about an error returned from a service.
Implements a standard โErrorDetailsโ as described in the API guidelines.
Fieldsยง
ยงcode: Option<String>The error code. A machine readable error code defined by the service.
message: Option<String>A human-readable error message describing the error.
target: Option<String>The target of the error (for example, the name of the property in error).
details: Vec<ErrorDetail>Additional details about the error.
inner_error: Option<InnerError>An inner error that may have more specific information about the root cause of the error.
additional_properties: HashMap<String, Value>Additional properties that may be returned with the error.
Trait Implementationsยง
Sourceยงimpl Clone for ErrorDetail
impl Clone for ErrorDetail
Sourceยงfn clone(&self) -> ErrorDetail
fn clone(&self) -> ErrorDetail
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 ErrorDetail
impl Debug for ErrorDetail
Sourceยงimpl<'de> Deserialize<'de> for ErrorDetail
impl<'de> Deserialize<'de> for ErrorDetail
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorDetail, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for ErrorDetail
impl Serialize for ErrorDetail
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnsafeUnpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Sourceยงfn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more