pub enum ApiError {
Show 17 variants
BadRequest,
Unauthorized,
Forbidden,
NotFound,
AlreadyExists,
Expired,
InvalidContentType,
Denied,
AccountLimitExceeded,
ValidationError,
LockedUserAccount,
VipOnly,
RateLimitExceeded,
ServerError,
ServiceUnavailable,
CloudflareError,
UnknownError(StatusCode),
}
Variants§
BadRequest
Forbidden
NotFound
AlreadyExists
Expired
InvalidContentType
Denied
AccountLimitExceeded
ValidationError
LockedUserAccount
VipOnly
RateLimitExceeded
ServerError
CloudflareError
UnknownError(StatusCode)
Trait Implementations§
Source§impl Error for ApiError
impl Error for ApiError
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()
Source§impl From<ApiError> for FromHttpError
impl From<ApiError> for FromHttpError
Source§fn from(source: ApiError) -> FromHttpError
fn from(source: ApiError) -> FromHttpError
Converts to this type from the input type.
Source§impl From<StatusCode> for ApiError
impl From<StatusCode> for ApiError
Source§fn from(value: StatusCode) -> ApiError
fn from(value: StatusCode) -> ApiError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnwindSafe for ApiError
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
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more