pub enum ApiErrorCode {
AuthError103,
ServerError500,
TooManyRequests429,
NotFound404,
Forbidden403,
BadRequest400,
ServiceUnavailable503,
Unknown(String),
}Expand description
API error codes
Variants§
AuthError103
Authentication error (103)
ServerError500
Server error (500)
TooManyRequests429
Too many requests (429)
NotFound404
Not found (404)
Forbidden403
Forbidden (403)
BadRequest400
Bad request (400)
Service unavailable (503)
Unknown(String)
Unknown error code
Trait Implementations§
Source§impl Clone for ApiErrorCode
impl Clone for ApiErrorCode
Source§fn clone(&self) -> ApiErrorCode
fn clone(&self) -> ApiErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiErrorCode
impl Debug for ApiErrorCode
Source§impl Display for ApiErrorCode
impl Display for ApiErrorCode
Source§impl Error for ApiErrorCode
impl Error for ApiErrorCode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for ApiErrorCode
impl RefUnwindSafe for ApiErrorCode
impl Send for ApiErrorCode
impl Sync for ApiErrorCode
impl Unpin for ApiErrorCode
impl UnwindSafe for ApiErrorCode
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