use serde::{Serialize, Deserialize};
///Change to a FinancialAccount's balance
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct TreasuryTransactionsResourceBalanceImpact {
///The change made to funds the user can spend right now.
pub cash: i64,
///The change made to funds that are not spendable yet, but will become available at a later time.
pub inbound_pending: i64,
///The change made to funds in the account, but not spendable because they are being held for pending outbound flows.
pub outbound_pending: i64,
}
impl std::fmt::Display for TreasuryTransactionsResourceBalanceImpact {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}