[][src]Struct libstripe::resources::core::tokens::Tokens

pub struct Tokens {
    pub id: String,
    pub object: Object,
    pub card: Option<Card>,
    pub bank_account: Option<BankAccount>,
    pub client_ip: Option<String>,
    pub created: i64,
    pub livemode: bool,
    pub token_type: TokenType,
    pub used: bool,
}

Fields

id: Stringobject: Objectcard: Option<Card>bank_account: Option<BankAccount>client_ip: Option<String>created: i64livemode: booltoken_type: TokenTypeused: bool

Methods

impl Tokens[src]

pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>[src]

pub fn retrieve(client: &Client, token: &str) -> Result<Self>[src]

Trait Implementations

impl PartialEq<Tokens> for Tokens[src]

impl Debug for Tokens[src]

impl Serialize for Tokens[src]

impl<'de> Deserialize<'de> for Tokens[src]

Auto Trait Implementations

impl Send for Tokens

impl Sync for Tokens

Blanket Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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

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