pub struct AuthorizeCoinbasePaymentSession<'a> { /* private fields */ }Expand description
Builder for [Client::authorize_coinbase_payment_session]
[`Client::authorize_coinbase_payment_session`]: super::Client::authorize_coinbase_payment_sessionImplementations§
Source§impl<'a> AuthorizeCoinbasePaymentSession<'a>
impl<'a> AuthorizeCoinbasePaymentSession<'a>
pub fn new(client: &'a Client) -> Self
pub fn payment_session_id<V>(self, value: V) -> Selfwhere
V: TryInto<PaymentSessionId>,
pub fn x_idempotency_key<V>(self, value: V) -> Self
pub fn cb_authz_id<V>(self, value: V) -> Self
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<CoinbaseAuthorizationRequest>,
<V as TryInto<CoinbaseAuthorizationRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<Authorization>, Error<Error>>
pub async fn send(self) -> Result<ResponseValue<Authorization>, Error<Error>>
Sends a POST request to /v2/payment-sessions/{paymentSessionId}/authorizations/coinbase
Trait Implementations§
Source§impl<'a> Clone for AuthorizeCoinbasePaymentSession<'a>
impl<'a> Clone for AuthorizeCoinbasePaymentSession<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AuthorizeCoinbasePaymentSession<'a>
impl<'a> !UnwindSafe for AuthorizeCoinbasePaymentSession<'a>
impl<'a> Freeze for AuthorizeCoinbasePaymentSession<'a>
impl<'a> Send for AuthorizeCoinbasePaymentSession<'a>
impl<'a> Sync for AuthorizeCoinbasePaymentSession<'a>
impl<'a> Unpin for AuthorizeCoinbasePaymentSession<'a>
impl<'a> UnsafeUnpin for AuthorizeCoinbasePaymentSession<'a>
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