Struct onedrive_api::Error [−][src]
pub struct Error { /* fields omitted */ }Error of API request
Implementations
impl Error[src]
impl Error[src]pub fn error_response(&self) -> Option<&ErrorResponse>[src]
Get the error response from API if caused by error status code.
pub fn oauth2_error_response(&self) -> Option<&OAuth2ErrorResponse>[src]
Get the OAuth2 error response from API if caused by OAuth2 error response.
pub fn status_code(&self) -> Option<StatusCode>[src]
Get the HTTP status code if caused by error status code.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Errorimpl !UnwindSafe for Error
impl !UnwindSafe for ErrorBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]