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
73
74
75
76
77
78
79
80
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListTransactionsByBlockHashResponseItemBlockchainSpecific {
#[serde(rename = "locktime")]
pub locktime: i32,
#[serde(rename = "size")]
pub size: i32,
#[serde(rename = "vSize")]
pub v_size: i32,
#[serde(rename = "version")]
pub version: i32,
#[serde(rename = "vin")]
pub vin: Vec<crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificDashVin>,
#[serde(rename = "vout")]
pub vout: Vec<crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificDashVout>,
#[serde(rename = "vsize")]
pub vsize: i32,
#[serde(rename = "contract")]
pub contract: String,
#[serde(rename = "gasLimit")]
pub gas_limit: String,
#[serde(rename = "gasPrice")]
pub gas_price: Box<crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificEthereumGasPrice>,
#[serde(rename = "gasUsed")]
pub gas_used: String,
#[serde(rename = "inputData")]
pub input_data: String,
#[serde(rename = "nonce")]
pub nonce: String,
#[serde(rename = "transactionStatus")]
pub transaction_status: String,
}
impl ListTransactionsByBlockHashResponseItemBlockchainSpecific {
pub fn new(locktime: i32, size: i32, v_size: i32, version: i32, vin: Vec<crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificDashVin>, vout: Vec<crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificDashVout>, vsize: i32, contract: String, gas_limit: String, gas_price: crate::models::ListTransactionsByBlockHashResponseItemBlockchainSpecificEthereumGasPrice, gas_used: String, input_data: String, nonce: String, transaction_status: String) -> ListTransactionsByBlockHashResponseItemBlockchainSpecific {
ListTransactionsByBlockHashResponseItemBlockchainSpecific {
locktime,
size,
v_size,
version,
vin,
vout,
vsize,
contract,
gas_limit,
gas_price: Box::new(gas_price),
gas_used,
input_data,
nonce,
transaction_status,
}
}
}