pub struct Card {Show 28 fields
pub id: String,
pub object: Object,
pub account: Option<String>,
pub address_city: Option<String>,
pub address_country: Option<String>,
pub address_line1: Option<String>,
pub address_line1_check: Option<CardCheck>,
pub address_line2: Option<String>,
pub address_state: Option<String>,
pub address_zip: Option<String>,
pub address_zip_check: Option<CardCheck>,
pub available_payout_methods: Option<Vec<AvailablePayoutMethods>>,
pub brand: CardBrand,
pub country: String,
pub currency: Option<Currency>,
pub customer: Option<String>,
pub cvc_check: Option<CardCheck>,
pub default_for_currency: Option<bool>,
pub dynamic_last4: Option<String>,
pub exp_month: i32,
pub exp_year: i32,
pub fingerprint: String,
pub funding: CardType,
pub last4: String,
pub metadata: HashMap<String, String>,
pub name: Option<String>,
pub recipient: Option<String>,
pub tokenization_method: Option<TokenizationMethod>,
}
Fields§
§id: String
§object: Object
§account: Option<String>
§address_city: Option<String>
§address_country: Option<String>
§address_line1: Option<String>
§address_line1_check: Option<CardCheck>
§address_line2: Option<String>
§address_state: Option<String>
§address_zip: Option<String>
§address_zip_check: Option<CardCheck>
§available_payout_methods: Option<Vec<AvailablePayoutMethods>>
§brand: CardBrand
§country: String
§currency: Option<Currency>
§customer: Option<String>
§cvc_check: Option<CardCheck>
§default_for_currency: Option<bool>
§dynamic_last4: Option<String>
§exp_month: i32
§exp_year: i32
§fingerprint: String
§funding: CardType
§last4: String
§metadata: HashMap<String, String>
§name: Option<String>
§recipient: Option<String>
§tokenization_method: Option<TokenizationMethod>
Implementations§
source§impl Card
impl Card
pub fn create<B: Serialize + StripeService>(
client: &Client,
customer_id: &str,
param: B
) -> Result<Self>
pub fn retrieve(client: &Client, customer_id: &str, id: &str) -> Result<Self>
pub fn update<B: Serialize + StripeService>(
client: &Client,
customer_id: &str,
id: &str,
param: B
) -> Result<Self>
pub fn delete(client: &Client, customer_id: &str, id: &str) -> Result<Deleted>
pub fn list<B: Serialize + StripeService>(
client: &Client,
customer_id: &str,
param: B
) -> Result<List<Self>>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more