Struct stripe::ApiErrors [−][src]
pub struct ApiErrors {
pub charge: Option<Box<String>>,
pub code: Option<Box<String>>,
pub decline_code: Option<Box<String>>,
pub doc_url: Option<Box<String>>,
pub message: Option<Box<String>>,
pub param: Option<Box<String>>,
pub payment_intent: Option<Box<PaymentIntent>>,
pub payment_method: Option<Box<PaymentMethod>>,
pub payment_method_type: Option<Box<String>>,
pub setup_intent: Option<Box<SetupIntent>>,
pub source: Option<Box<ApiErrorsSourceUnion>>,
pub type_: ApiErrorsType,
}
Expand description
The resource representing a Stripe “APIErrors”.
Fields
charge: Option<Box<String>>
For card errors, the ID of the failed charge.
code: Option<Box<String>>
For some errors that could be handled programmatically, a short string indicating the error code reported.
decline_code: Option<Box<String>>
For card errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one.
doc_url: Option<Box<String>>
A URL to more information about the error code reported.
message: Option<Box<String>>
A human-readable message providing more details about the error.
For card errors, these messages can be shown to your users.
param: Option<Box<String>>
If the error is parameter-specific, the parameter related to the error.
For example, you can use this to display a message near the correct form field.
payment_intent: Option<Box<PaymentIntent>>
payment_method: Option<Box<PaymentMethod>>
payment_method_type: Option<Box<String>>
If the error is specific to the type of payment method, the payment method type that had a problem.
This field is only populated for invoice-related errors.
setup_intent: Option<Box<SetupIntent>>
source: Option<Box<ApiErrorsSourceUnion>>
The source object for errors returned on a request involving a source.
type_: ApiErrorsType
The type of error returned.
One of api_error
, card_error
, idempotency_error
, or invalid_request_error
.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ApiErrors
impl UnwindSafe for ApiErrors
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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
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