pub struct CustomizablePayjpRequest<T> { /* private fields */ }
Expand description
A CustomizablePayjpRequest
allows for configuring per-request behavior that overrides
default configuration values.
Implementations§
Source§impl<T> CustomizablePayjpRequest<T>
impl<T> CustomizablePayjpRequest<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.
Source§impl<T: Deserialize> CustomizablePayjpRequest<T>
impl<T: Deserialize> CustomizablePayjpRequest<T>
Sourcepub async fn send<C: PayjpClient>(self, client: &C) -> Result<T, C::Err>
pub async fn send<C: PayjpClient>(self, client: &C) -> Result<T, C::Err>
Sends the request and returns the response.
Sourcepub fn send_blocking<C: BlockingClient>(self, client: &C) -> Result<T, C::Err>
pub fn send_blocking<C: BlockingClient>(self, client: &C) -> Result<T, C::Err>
Sends the request, blocking the main thread until the response is returned.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for CustomizablePayjpRequest<T>
impl<T> RefUnwindSafe for CustomizablePayjpRequest<T>where
T: RefUnwindSafe,
impl<T> Send for CustomizablePayjpRequest<T>where
T: Send,
impl<T> Sync for CustomizablePayjpRequest<T>where
T: Sync,
impl<T> Unpin for CustomizablePayjpRequest<T>where
T: Unpin,
impl<T> UnwindSafe for CustomizablePayjpRequest<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