pub enum AuthError {
Client(Error),
StatusCode(Response),
ParseJson(Error),
Generic {
message: String,
},
RequestError(ReqwestError),
}Expand description
Box API errors
Variants§
Client(Error)
The request couldn’t be completed because there was an error when trying to do so
StatusCode(Response)
The request was made, but the server returned an unsuccessful status
code, such as 404 or 503. In some cases, the response may contain a
custom message from Box.com with more information, which can be
serialized into Box_model::ApiError.
ParseJson(Error)
Generic
RequestError(ReqwestError)
Trait Implementations§
source§impl Error for AuthError
impl Error for AuthError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ReqwestError> for AuthError
impl From<ReqwestError> for AuthError
source§fn from(source: ReqwestError) -> Self
fn from(source: ReqwestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl !UnwindSafe for AuthError
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