Trait StripeBlockingClient

Source
pub trait StripeBlockingClient {
    type Err: StripeClientErr;

    // Required method
    fn execute(&self, req: CustomizedStripeRequest) -> Result<Bytes, Self::Err>;
}
Expand description

An abstraction for defining HTTP clients capable of making blocking Stripe API requests compatible with request information generated in the stripe request crates.

Required Associated Types§

Source

type Err: StripeClientErr

The error returned, either if the request failed due to an issue with client communicating with Stripe, or a client error returned by the Stripe API.

Required Methods§

Source

fn execute(&self, req: CustomizedStripeRequest) -> Result<Bytes, Self::Err>

Make a blocking API call.

§Errors

If the request failed due to an issue with client communication with Stripe, or a client error returned by the Stripe API.

Implementors§