hop-cli 0.2.61

Interact with Hop in your terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Deserialize;

#[derive(Debug, Deserialize, Clone)]
pub struct PaymentMethod {
    pub id: String,
    pub brand: String,
    pub exp_month: u8,
    pub exp_year: u16,
    pub last4: u16,
    pub default: bool,
}

#[derive(Debug, Deserialize, Clone)]
pub struct PaymentMethods {
    pub payment_methods: Vec<PaymentMethod>,
}