pub struct ErrorObject {
    pub status: String,
    pub title: String,
    pub detail: String,
    pub source: Option<Source>,
}

Fields

status: String

The HTTP status code associated with this error. The status indicates the broad type of error according to HTTP semantics.

title: String

A short description of this error. This should be stable across multiple occurrences of this type of error and typically expands on the reason for the status code.

detail: String

A detailed description of this error. This should be considered unique to individual occurrences of an error and subject to change. It is useful for debugging purposes.

source: Option<Source>

If applicable, location in the request that this error relates to. This may be a parameter in the query string, or a an attribute in the request body.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more