async fn store_credit_card(&self, credit_card: &CreditCard) -> Result<String, PoolErrors> {
        let token = self.tokenizer.generate(&credit_card);
        let credit_card_json = serde_json::to_string(&credit_card).unwrap();
        let _:() = self.store(&token, &credit_card_json).await?;
        Ok(token)
    }
/// Store the credit card in the data vault
/// Arguments:
///     * `CreditCard` - the cc object that you wish to store
/// return:
///     A new token as String
/// # example
/// ```rust
/// use data_vault::{DataVault, PostgresDataVault};
/// use data_vault::encryption::AesGcmSivEncryption;
/// use data_vault::tokenizer::Blake3Tokenizer;
/// use credit_card::CreditCard;
///
/// let cc = CreditCard {
///    number: "4111111111111111".to_string(),
///    cardholder_name: "Graydon Hoare".to_string(),
///    expiration_month: "01".to_string(),
///    expiration_year: "2023".to_string(),
///    brand: None,
///    security_code: None
/// };
///
/// let data_vault = PostgresDataVault::<AesGcmSivEncryption, Blake3Tokenizer>::new().unwrap();
/// let token = data_vault.store_credit_card(&cc);
/// ```
Store the credit card in the data vault
Arguments:
`CreditCard` - the cc object that you wish to store
return:
A new token as String
Store the credit card in the data vault Arguments : ` CreditCard ` - the cc object that you wish to store return : A new token as String
async fn store_credit_card(&self, credit_card: &CreditCard) -> Result<String, PoolErrors> {
        let token = self.tokenizer.generate(&credit_card);
        let credit_card_json = serde_json::to_string(&credit_card).unwrap();
        let _:() = self.store(&token, &credit_card_json).await?;
        Ok(token)
    }
async fn store_credit_card ( & self , credit_card : & CreditCard ) -> Result < String , PoolErrors > { let token = self . tokenizer . generate ( & credit_card ) ; let credit_card_json = serde_json :: to_string ( & credit_card ) . unwrap ( ) ; let _ : ( ) = self . store ( & token , & credit_card_json ) . await ? ; Ok ( token ) }
Store the credit card in the data vault
Arguments:
 `CreditCard` - the cc object that you wish to store
return:
A new token as String
Store the credit card in the data vault Arguments : ` CreditCard ` - the cc object that you wish to store return : A new token as String
&self
credit_card
&CreditCard
&self
credit_card
&CreditCard
example


let cc = CreditCard {
number: "4111111111111111".to_string(),
cardholder_name: "Graydon Hoare".to_string(),
expiration_month: "01".to_string(),
expiration_year: "2023".to_string(),
brand: None,
security_code: None
}.

let data_vault = PostgresDataVault::::new().unwrap();
let token = data_vault.store_credit_card(&cc);
```
let cc = CreditCard { number : " 4111111111111111 " . to_string () cardholder_name : " Graydon Hoare " . to_string () expiration_month : " 01 " . to_string () expiration_year : " 2023 " . to_string () brand : None security_code : None } . let data_vault = PostgresDataVault :::: new () . unwrap () ; let token = data_vault . store_credit_card ( &cc ) ; ` ` `