openlimits_exchange/model/
balance.rs

1use derive_more::Constructor;
2use rust_decimal::prelude::Decimal;
3use serde::Deserialize;
4use serde::Serialize;
5
6/// This struct represents the account balance
7#[derive(Serialize, Deserialize, Clone, Constructor, Debug, PartialEq)]
8pub struct Balance {
9    pub asset: String,
10    pub total: Decimal,
11    pub free: Decimal,
12}