[][src]Struct stripe::CreateToken

pub struct CreateToken<'a> {
    pub account: Option<CreateTokenAccount>,
    pub customer: Option<CustomerId>,
    pub expand: &'a [&'a str],
    pub pii: Option<CreateTokenPii>,
}

The parameters for Token::create.

Fields

account: Option<CreateTokenAccount>

Information for the account this token will represent.

customer: Option<CustomerId>

The customer (owned by the application's account) for which to create a token.

For use only with Stripe Connect. Also, this can be used only with an OAuth access token or Stripe-Account header. For more details, see Shared Customers.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

pii: Option<CreateTokenPii>

The PII this token will represent.

Methods

impl<'a> CreateToken<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Default for CreateToken<'a>[src]

impl<'a> Clone for CreateToken<'a>[src]

impl<'a> Debug for CreateToken<'a>[src]

impl<'a> Serialize for CreateToken<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for CreateToken<'a>

impl<'a> Sync for CreateToken<'a>

impl<'a> Send for CreateToken<'a>

impl<'a> UnwindSafe for CreateToken<'a>

impl<'a> RefUnwindSafe for CreateToken<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self