pub struct PaymentSourceTokenBuilder { /* private fields */ }
Expand description
Builder for PaymentSourceToken
.
Implementations§
Source§impl PaymentSourceTokenBuilder
impl PaymentSourceTokenBuilder
Sourcepub fn type(&mut self, value: String) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
The tokenization method that generated the ID.
Can only be BILLING_AGREEMENT.
Sourcepub fn build(
&self,
) -> Result<PaymentSourceToken, PaymentSourceTokenBuilderError>
pub fn build( &self, ) -> Result<PaymentSourceToken, PaymentSourceTokenBuilderError>
Trait Implementations§
Source§impl Clone for PaymentSourceTokenBuilder
impl Clone for PaymentSourceTokenBuilder
Source§fn clone(&self) -> PaymentSourceTokenBuilder
fn clone(&self) -> PaymentSourceTokenBuilder
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 moreAuto Trait Implementations§
impl Freeze for PaymentSourceTokenBuilder
impl RefUnwindSafe for PaymentSourceTokenBuilder
impl Send for PaymentSourceTokenBuilder
impl Sync for PaymentSourceTokenBuilder
impl Unpin for PaymentSourceTokenBuilder
impl UnwindSafe for PaymentSourceTokenBuilder
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