1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Serialize, Deserialize};
///Information about the balance of the ledger held with Plaid.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct TransferLedgerBalance {
    ///The amount of this balance available for use (decimal string with two digits of precision e.g. "10.00").
    pub available: String,
    ///The amount of pending funds that are in processing (decimal string with two digits of precision e.g. "10.00").
    pub pending: String,
}
impl std::fmt::Display for TransferLedgerBalance {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}