pub struct CustomizableStripeRequest<T> { /* private fields */ }
Expand description
A CustomizableStripeRequest
allows for configuring per-request behavior that overrides
default configuration values.
Implementations§
Source§impl<T> CustomizableStripeRequest<T>
impl<T> CustomizableStripeRequest<T>
Sourcepub fn request_strategy(self, strategy: RequestStrategy) -> Self
pub fn request_strategy(self, strategy: RequestStrategy) -> Self
Set a strategy to use for this request, overriding the default set during configuration.
Sourcepub fn account_id(self, account_id: AccountId) -> Self
pub fn account_id(self, account_id: AccountId) -> Self
Set an account id to use for this request, overriding the default set during configuration.
Source§impl<T: Deserialize> CustomizableStripeRequest<T>
impl<T: Deserialize> CustomizableStripeRequest<T>
Sourcepub async fn send<C: StripeClient>(self, client: &C) -> Result<T, C::Err>
pub async fn send<C: StripeClient>(self, client: &C) -> Result<T, C::Err>
Sends the request and returns the response.
§Errors
If the request failed due to an issue with client communication with Stripe, or a client error returned by the Stripe API.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
self,
client: &C,
) -> Result<T, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( self, client: &C, ) -> Result<T, C::Err>
Sends the request, blocking the main thread until the response is returned.
§Errors
If the request failed due to an issue with client communication with Stripe, or a client error returned by the Stripe API.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CustomizableStripeRequest<T>
impl<T> RefUnwindSafe for CustomizableStripeRequest<T>where
T: RefUnwindSafe,
impl<T> Send for CustomizableStripeRequest<T>where
T: Send,
impl<T> Sync for CustomizableStripeRequest<T>where
T: Sync,
impl<T> Unpin for CustomizableStripeRequest<T>where
T: Unpin,
impl<T> UnwindSafe for CustomizableStripeRequest<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more