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§
Required Methods§
Sourcefn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible clients to make API calls.
Provided Methods§
Sourcefn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.