pub struct Error {
    pub error_type: String,
    pub error_code: String,
    pub error_message: String,
    pub display_message: Option<String>,
    pub request_id: Option<String>,
    pub causes: Option<Vec<Value>>,
    pub status: Option<f64>,
    pub documentation_url: Option<String>,
    pub suggested_action: Option<String>,
}

Fields

error_type: String

A broad categorization of the error. Safe for programmatic use.

error_code: String

The particular error code. Safe for programmatic use.

error_message: String

A developer-friendly representation of the error code. This may change over time and is not safe for programmatic use.

display_message: Option<String>

A user-friendly representation of the error code. null if the error is not related to user action.

This may change over time and is not safe for programmatic use.

request_id: Option<String>

A unique ID identifying the request, to be used for troubleshooting purposes. This field will be omitted in errors provided by webhooks.

causes: Option<Vec<Value>>

In the Assets product, a request can pertain to more than one Item. If an error is returned for such a request, causes will return an array of errors containing a breakdown of these errors on the individual Item level, if any can be identified.

causes will only be provided for the error_type ASSET_REPORT_ERROR. causes will also not be populated inside an error nested within a warning object.

status: Option<f64>

The HTTP status code associated with the error. This will only be returned in the response body when the error information is provided via a webhook.

documentation_url: Option<String>

The URL of a Plaid documentation page with more information about the error

suggested_action: Option<String>

Suggested steps for resolving the error

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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