Struct onedrive_api::resource::ErrorResponse [−][src]
#[non_exhaustive]pub struct ErrorResponse { pub code: String, pub message: String, pub inner_error: Option<Map<String, Value>>, }
The error resource type, returned whenever an error occurs in the processing of a request.
Error responses follow the definition in the OData v4 specification for error responses.
This struct is independent with OAuth2ErrorResponse from OAuth2 API.
It may be contained in onedrive_api::Error returned by storage API
(methods of OneDrive, ListChildrenFetcher, etc.).
See also
Fields (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: StringOData code. Non-exhaustive.
Some possible values of code field can be found in:
message: StringOData message. Usually to be human-readable.
inner_error: Option<Map<String, Value>>OData innererror. An optional object with additional or more specific error codes.
Trait Implementations
impl<'de> Deserialize<'de> for ErrorResponse[src]
impl<'de> Deserialize<'de> for ErrorResponse[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for ErrorResponse
impl RefUnwindSafe for ErrorResponseimpl Send for ErrorResponse
impl Send for ErrorResponseimpl Sync for ErrorResponse
impl Sync for ErrorResponseimpl Unpin for ErrorResponse
impl Unpin for ErrorResponseimpl UnwindSafe for ErrorResponse
impl UnwindSafe for ErrorResponseBlanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]