1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListZilliqaTransactionsByBlockHashRi {
#[serde(rename = "fee")]
pub fee: Box<crate::models::GetZilliqaTransactionDetailsByTransactionIdriFee>,
#[serde(rename = "gasLimit")]
pub gas_limit: i32,
#[serde(rename = "gasPrice")]
pub gas_price: i32,
#[serde(rename = "gasUsed")]
pub gas_used: i32,
#[serde(rename = "minedInBlockHeight")]
pub mined_in_block_height: i32,
#[serde(rename = "nonce")]
pub nonce: i32,
#[serde(rename = "recipients")]
pub recipients: Vec<crate::models::ListZilliqaTransactionsByAddressRiRecipients>,
#[serde(rename = "senders")]
pub senders: Vec<crate::models::ListZilliqaTransactionsByAddressRiSenders>,
#[serde(rename = "timestamp")]
pub timestamp: i32,
#[serde(rename = "transactionHash")]
pub transaction_hash: String,
#[serde(rename = "transactionIndex")]
pub transaction_index: i32,
#[serde(rename = "transactionStatus")]
pub transaction_status: String,
}
impl ListZilliqaTransactionsByBlockHashRi {
pub fn new(fee: crate::models::GetZilliqaTransactionDetailsByTransactionIdriFee, gas_limit: i32, gas_price: i32, gas_used: i32, mined_in_block_height: i32, nonce: i32, recipients: Vec<crate::models::ListZilliqaTransactionsByAddressRiRecipients>, senders: Vec<crate::models::ListZilliqaTransactionsByAddressRiSenders>, timestamp: i32, transaction_hash: String, transaction_index: i32, transaction_status: String) -> ListZilliqaTransactionsByBlockHashRi {
ListZilliqaTransactionsByBlockHashRi {
fee: Box::new(fee),
gas_limit,
gas_price,
gas_used,
mined_in_block_height,
nonce,
recipients,
senders,
timestamp,
transaction_hash,
transaction_index,
transaction_status,
}
}
}