Struct extrahop::errors::RestError
[−]
[src]
pub struct RestError { /* fields omitted */ }
A 4xx or 5xx response from the ExtraHop appliance.
Methods
impl RestError
[src]
fn new<B: Into<Option<ErrorBody>>>(status: StatusCode, body: B) -> Self
[src]
Create a new REST API error.
fn status(&self) -> StatusCode
[src]
Gets the HTTP status code of the error.
fn body(&self) -> Option<&ErrorBody>
[src]
Gets the body of the error, if one was provided in well-formed JSON.
Trait Implementations
impl Debug for RestError
[src]
impl Clone for RestError
[src]
fn clone(&self) -> RestError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RestError
[src]
fn eq(&self, __arg_0: &RestError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RestError) -> bool
[src]
This method tests for !=
.
impl StdError for RestError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more