whisky_provider/maestro/models/
account.rs

1use serde::Deserialize;
2
3// use crate::provider::maestro::utils::last_updated::LastUpdated;
4
5#[derive(Deserialize, Debug, Clone)]
6pub struct AccountInformation {
7    pub delegated_pool: Option<String>,
8    pub registered: bool,
9    pub rewards_available: i64,
10    // pub stake_address: String,
11    pub total_balance: i64,
12    // pub total_rewarded: i64,
13    pub total_withdrawn: i64,
14    // pub utxo_balance: i64,
15}
16
17#[derive(Deserialize, Debug, Clone)]
18pub struct StakeAccountInformation {
19    pub data: AccountInformation,
20    // pub last_updated: LastUpdated,
21}