Struct stripe::CreateToken
source · [−]pub struct CreateToken<'a> {
pub account: Option<CreateTokenAccount>,
pub card: Option<CreateTokenCardUnion>,
pub customer: Option<CustomerId>,
pub cvc_update: Option<CreateTokenCvcUpdate>,
pub expand: &'a [&'a str],
pub person: Option<CreateTokenPerson>,
pub pii: Option<CreateTokenPii>,
}
Expand description
The parameters for Token::create
.
Fields
account: Option<CreateTokenAccount>
Information for the account this token will represent.
card: Option<CreateTokenCardUnion>
customer: Option<CustomerId>
The customer (owned by the application’s account) for which to create a token.
This can be used only with an OAuth access token or Stripe-Account header. For more details, see Cloning Saved Payment Methods.
cvc_update: Option<CreateTokenCvcUpdate>
The updated CVC value this token will represent.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
person: Option<CreateTokenPerson>
Information for the person this token will represent.
pii: Option<CreateTokenPii>
The PII this token will represent.
Implementations
sourceimpl<'a> CreateToken<'a>
impl<'a> CreateToken<'a>
Trait Implementations
sourceimpl<'a> Clone for CreateToken<'a>
impl<'a> Clone for CreateToken<'a>
sourcefn clone(&self) -> CreateToken<'a>
fn clone(&self) -> CreateToken<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CreateToken<'a>
impl<'a> Debug for CreateToken<'a>
sourceimpl<'a> Default for CreateToken<'a>
impl<'a> Default for CreateToken<'a>
sourcefn default() -> CreateToken<'a>
fn default() -> CreateToken<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Serialize for CreateToken<'a>
impl<'a> Serialize for CreateToken<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateToken<'a>
impl<'a> Send for CreateToken<'a>
impl<'a> Sync for CreateToken<'a>
impl<'a> Unpin for CreateToken<'a>
impl<'a> UnwindSafe for CreateToken<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more