pub struct RetrievePaymentMethod { /* private fields */ }Expand description
Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods.
Implementations§
Source§impl RetrievePaymentMethod
impl RetrievePaymentMethod
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for RetrievePaymentMethod
impl Clone for RetrievePaymentMethod
Source§fn clone(&self) -> RetrievePaymentMethod
fn clone(&self) -> RetrievePaymentMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetrievePaymentMethod
impl Debug for RetrievePaymentMethod
Source§impl Serialize for RetrievePaymentMethod
impl Serialize for RetrievePaymentMethod
Source§impl StripeRequest for RetrievePaymentMethod
impl StripeRequest for RetrievePaymentMethod
Source§type Output = PaymentMethod
type Output = PaymentMethod
The data returned from the eventual API call.
Source§fn 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.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for RetrievePaymentMethod
impl RefUnwindSafe for RetrievePaymentMethod
impl Send for RetrievePaymentMethod
impl Sync for RetrievePaymentMethod
impl Unpin for RetrievePaymentMethod
impl UnsafeUnpin for RetrievePaymentMethod
impl UnwindSafe for RetrievePaymentMethod
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