pub struct PaymentMethodGet<'a> { /* private fields */ }
Expand description
Request builder for fetching a single payment method from Paddle API.
Implementations§
Source§impl<'a> PaymentMethodGet<'a>
impl<'a> PaymentMethodGet<'a>
pub fn new( client: &'a Paddle, customer_id: impl Into<CustomerID>, payment_method_id: impl Into<PaymentMethodID>, ) -> Self
Sourcepub async fn send(&self) -> Result<SuccessResponse<PaymentMethod>, Error>
pub async fn send(&self) -> Result<SuccessResponse<PaymentMethod>, Error>
Send the request to Paddle and return the response.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PaymentMethodGet<'a>
impl<'a> RefUnwindSafe for PaymentMethodGet<'a>
impl<'a> Send for PaymentMethodGet<'a>
impl<'a> Sync for PaymentMethodGet<'a>
impl<'a> Unpin for PaymentMethodGet<'a>
impl<'a> UnwindSafe for PaymentMethodGet<'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