pub struct RestError {
pub status_code: Option<String>,
pub error_str: Option<String>,
pub error_json: Option<Value>,
pub type_error: TypeError,
}Expand description
Error type for REST operations
Fields§
§status_code: Option<String>HTTP status code if available
error_str: Option<String>Error message if available
error_json: Option<Value>JSON error response if available
type_error: TypeErrorType of error that occurred
Trait Implementations§
Source§impl Error for RestError
impl Error for RestError
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 RestError
impl RefUnwindSafe for RestError
impl Send for RestError
impl Sync for RestError
impl Unpin for RestError
impl UnsafeUnpin for RestError
impl UnwindSafe for RestError
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