pub enum CufinderError {
HttpError(Error),
JsonError(Error),
ApiError {
status: u16,
message: String,
},
ValidationError(String),
AuthenticationError(String),
RateLimitError(String),
CreditLimitError(String),
NetworkError(String),
UnknownError(String),
}
Expand description
CUFinder SDK error types
Variants§
HttpError(Error)
JsonError(Error)
ApiError
ValidationError(String)
AuthenticationError(String)
RateLimitError(String)
CreditLimitError(String)
NetworkError(String)
UnknownError(String)
Trait Implementations§
Source§impl Debug for CufinderError
impl Debug for CufinderError
Source§impl Display for CufinderError
impl Display for CufinderError
Source§impl Error for CufinderError
impl Error for CufinderError
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 CufinderError
impl From<Error> for CufinderError
Auto Trait Implementations§
impl Freeze for CufinderError
impl !RefUnwindSafe for CufinderError
impl Send for CufinderError
impl Sync for CufinderError
impl Unpin for CufinderError
impl !UnwindSafe for CufinderError
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