pub struct PaymentSourceBuilder { /* private fields */ }
Expand description
Builder for PaymentSource
.
Implementations§
Source§impl PaymentSourceBuilder
impl PaymentSourceBuilder
Sourcepub fn token(&mut self, value: PaymentSourceToken) -> &mut Self
pub fn token(&mut self, value: PaymentSourceToken) -> &mut Self
The tokenized payment source to fund a payment.
Sourcepub fn build(&self) -> Result<PaymentSource, PaymentSourceBuilderError>
pub fn build(&self) -> Result<PaymentSource, PaymentSourceBuilderError>
Trait Implementations§
Source§impl Clone for PaymentSourceBuilder
impl Clone for PaymentSourceBuilder
Source§fn clone(&self) -> PaymentSourceBuilder
fn clone(&self) -> PaymentSourceBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PaymentSourceBuilder
impl RefUnwindSafe for PaymentSourceBuilder
impl Send for PaymentSourceBuilder
impl Sync for PaymentSourceBuilder
impl Unpin for PaymentSourceBuilder
impl UnwindSafe for PaymentSourceBuilder
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