multiversx_sdk/data/
esdt.rsuse serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct EsdtBalance {
pub token_identifier: String,
pub balance: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EsdtBalanceData {
pub esdts: HashMap<String, EsdtBalance>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EsdtBalanceResponse {
pub data: Option<EsdtBalanceData>,
pub error: String,
pub code: String,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EsdtRolesData {
pub roles: HashMap<String, Vec<String>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EsdtRolesResponse {
pub data: Option<EsdtRolesData>,
pub error: String,
pub code: String,
}