pub enum RoverApiError {
Http(Error),
Json(Error),
Api {
code: String,
message: String,
detail: Option<String>,
context: Option<Value>,
},
RateLimit {
retry_after: u64,
},
InvalidApiKey,
}Variants§
Trait Implementations§
Source§impl Debug for RoverApiError
impl Debug for RoverApiError
Source§impl Display for RoverApiError
impl Display for RoverApiError
Source§impl Error for RoverApiError
impl Error for RoverApiError
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<Error> for RoverApiError
impl From<Error> for RoverApiError
Auto Trait Implementations§
impl !RefUnwindSafe for RoverApiError
impl !UnwindSafe for RoverApiError
impl Freeze for RoverApiError
impl Send for RoverApiError
impl Sync for RoverApiError
impl Unpin for RoverApiError
impl UnsafeUnpin for RoverApiError
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