[][src]Struct onedrive_api::resource::ErrorResponse

#[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

Microsoft Docs

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: String

OData code. Non-exhaustive.

Some possible values of code field can be found in:

message: String

OData 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 Debug for ErrorResponse[src]

impl<'de> Deserialize<'de> for ErrorResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.