Struct json_api::doc::ErrorObject [] [src]

pub struct ErrorObject {
    pub code: Option<String>,
    pub detail: Option<String>,
    pub id: Option<String>,
    pub links: Map<Key, Link>,
    pub meta: Map,
    pub source: Option<ErrorSource>,
    pub status: Option<StatusCode>,
    pub title: Option<String>,
    // some fields omitted
}

Contains information about problems encountered while performing an operation.

For more information, check out the error objects section of the JSON API specification.

Fields

An application-specific error code, expressed as a string value.

A human-readable explanation specific to this occurrence of the problem.

A unique identifier for this particular occurrence of the problem.

Contains relevant links. If this value of this field is empty, it will not be serialized. For more information, check out the links section of the JSON API specification.

Non-standard meta information. If this value of this field is empty, it will not be serialized. For more information, check out the meta information section of the JSON API specification.

The source of the error.

The HTTP status code applicable to this problem.

A short, human-readable summary of the problem.

Methods

impl ErrorObject
[src]

[src]

Returns a new ErrorObject with the specified status.

Trait Implementations

impl Clone for ErrorObject
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorObject
[src]

[src]

Formats the value using the given formatter.

impl Default for ErrorObject
[src]

[src]

Returns the "default value" for a type. Read more

impl PartialEq for ErrorObject
[src]

[src]

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

[src]

This method tests for !=.