Struct extrahop::errors::RestError [] [src]

pub struct RestError { /* fields omitted */ }

A 4xx or 5xx response from the ExtraHop appliance.

Methods

impl RestError
[src]

[src]

Create a new REST API error.

[src]

Gets the HTTP status code of the error.

[src]

Gets the body of the error, if one was provided in well-formed JSON.

Trait Implementations

impl Debug for RestError
[src]

[src]

Formats the value using the given formatter.

impl Clone for RestError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for RestError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl StdError for RestError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for RestError
[src]

[src]

Formats the value using the given formatter. Read more