Struct onedrive::OneDriveApiErrorResponse
source · pub struct OneDriveApiErrorResponse {
pub code: String,
pub message: String,
pub inner_error: String,
}Expand description
Represents an error response returned by the OneDrive API
Fields§
§code: StringContains one of 15 possible values. Your apps must be prepared to handle any one of these errors.
- accessDenied The caller doesn’t have permission to perform the action.
- activityLimitReached The app or user has been throttled.
- generalException An unspecified error has occurred.
- invalidRange The specified byte range is invalid or unavailable.
- invalidRequest The request is malformed or incorrect.
- itemNotFound The resource could not be found.
- malwareDetected Malware was detected in the requested resource.
- nameAlreadyExists The specified item name already exists.
- notAllowed The action is not allowed by the system.
- notSupported The request is not supported by the system.
- resourceModified The resource being updated has changed since the caller last read it, usually an eTag mismatch.
- resyncRequired The delta token is no longer valid, and the app must reset the sync state.
- serviceNotAvailable The service is not available. Try the request again after a delay. There may be a Retry-After header.
- quotaLimitReached The user has reached their quota limit.
- unauthenticated The caller is not authenticated.
message: StringThe description of the error
inner_error: StringA string representing a JSON object that may recursively contain more innererror objects
with additional, more specific error codes.\
Trait Implementations§
source§impl Debug for OneDriveApiErrorResponse
impl Debug for OneDriveApiErrorResponse
source§impl<'de> Deserialize<'de> for OneDriveApiErrorResponse
impl<'de> Deserialize<'de> for OneDriveApiErrorResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OneDriveApiErrorResponse
impl Send for OneDriveApiErrorResponse
impl Sync for OneDriveApiErrorResponse
impl Unpin for OneDriveApiErrorResponse
impl UnwindSafe for OneDriveApiErrorResponse
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