pub enum LTAError {
BackendError(Error),
InvalidAPIKey,
RateLimitReached,
UnknownEnumVariant,
Unauthorized,
NotFound,
FailedToParseBody,
UnhandledStatusCode(StatusCode, String),
Custom(String),
}Expand description
LTAError type, all request using lta-rs returns Result<T, LTAError>
Variants§
BackendError(Error)
Internal error within the client backend, open a PR if this happens
InvalidAPIKey
API key is most likely empty
RateLimitReached
You have reached the server limit, try again later
UnknownEnumVariant
Response body can’t be parsed to a valid enum
Make sure that your API key is correct and valid
NotFound
HTTP NOTFOUND
FailedToParseBody
Failed to parse body of response, probably malformed
UnhandledStatusCode(StatusCode, String)
Undocumented status code, open an issue if this happens
Custom(String)
Custom
Trait Implementations§
Source§impl Error for LTAError
impl Error for LTAError
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 LTAError
impl !RefUnwindSafe for LTAError
impl Send for LTAError
impl Sync for LTAError
impl Unpin for LTAError
impl !UnwindSafe for LTAError
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