Credit Card Types

Rust Workflow

The Credit Card Type library for Rust provides a utility method to determine the type of credit card based on both fully qualified and partial card numbers.

Features

Usage

```rust use creditcardtypes::{CreditCardPool, CreditCardType};

fn main() { // Create a new pool. let pool = CreditCardPool::new();

// Get the credit card type for a given card number.
let result = pool.get_credit_card_type("4111111111111111").unwrap();

// Print the result.
println!("Credit card type: {:#?}", result);

} ```

This crate was inspired by the credit-card-type NPM package.

License

This project is licensed under the MIT License - see the LICENSE file for details.