Trait StripeRequest

Source
pub trait StripeRequest {
    type Output;

    // Required method
    fn build(&self) -> RequestBuilder;

    // Provided method
    fn customize(&self) -> CustomizableStripeRequest<Self::Output> { ... }
}
Expand description

Define how to convert structs into the data required to make a specific Stripe API call.

Required Associated Types§

Source

type Output

The data returned from the eventual API call.

Required Methods§

Source

fn build(&self) -> RequestBuilder

Convert the struct into library-agnostic data that can be used by compatible clients to make API calls.

Provided Methods§

Source

fn customize(&self) -> CustomizableStripeRequest<Self::Output>

Convert to a builder allowing per-request customization.

Implementors§