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
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLatestMinedXrpRippleBlockRi {
#[serde(rename = "blockHash")]
pub block_hash: String,
#[serde(rename = "blockHeight")]
pub block_height: i32,
#[serde(rename = "previousBlockHash")]
pub previous_block_hash: String,
#[serde(rename = "timestamp")]
pub timestamp: i32,
#[serde(rename = "transactionsCount")]
pub transactions_count: i32,
#[serde(rename = "totalCoins")]
pub total_coins: Box<crate::models::GetLatestMinedXrpRippleBlockRiTotalCoins>,
#[serde(rename = "totalFees")]
pub total_fees: Box<crate::models::GetLatestMinedXrpRippleBlockRiTotalFees>,
}
impl GetLatestMinedXrpRippleBlockRi {
pub fn new(block_hash: String, block_height: i32, previous_block_hash: String, timestamp: i32, transactions_count: i32, total_coins: crate::models::GetLatestMinedXrpRippleBlockRiTotalCoins, total_fees: crate::models::GetLatestMinedXrpRippleBlockRiTotalFees) -> GetLatestMinedXrpRippleBlockRi {
GetLatestMinedXrpRippleBlockRi {
block_hash,
block_height,
previous_block_hash,
timestamp,
transactions_count,
total_coins: Box::new(total_coins),
total_fees: Box::new(total_fees),
}
}
}