multiversx_sdk/data/
account.rsuse super::sdk_address::SdkAddress;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Account {
pub address: SdkAddress,
pub nonce: u64,
pub balance: String,
pub username: String,
pub code: String,
pub code_hash: Option<String>,
pub root_hash: Option<String>,
pub code_metadata: Option<String>,
pub developer_reward: Option<String>,
pub owner_address: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountData {
pub account: Account,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountResponse {
pub data: Option<AccountData>,
pub error: String,
pub code: String,
}