multiversx_sdk/data/
account_storage.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountStorage {
    pub pairs: HashMap<String, String>,
}

// AccountResponse holds the account endpoint response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountStorageResponse {
    pub data: Option<AccountStorage>,
    pub error: String,
    pub code: String,
}