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
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddressCoinsTransactionConfirmedEachConfirmationDataItem {
#[serde(rename = "blockchain")]
pub blockchain: String,
#[serde(rename = "network")]
pub network: String,
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "minedInBlock")]
pub mined_in_block: Box<crate::models::AddressCoinsTransactionConfirmedEachConfirmationDataItemMinedInBlock>,
#[serde(rename = "transactionId")]
pub transaction_id: String,
#[serde(rename = "currentConfirmations")]
pub current_confirmations: i32,
#[serde(rename = "targetConfirmations")]
pub target_confirmations: i32,
#[serde(rename = "amount")]
pub amount: String,
#[serde(rename = "unit")]
pub unit: String,
#[serde(rename = "direction")]
pub direction: Direction,
}
impl AddressCoinsTransactionConfirmedEachConfirmationDataItem {
pub fn new(blockchain: String, network: String, address: String, mined_in_block: crate::models::AddressCoinsTransactionConfirmedEachConfirmationDataItemMinedInBlock, transaction_id: String, current_confirmations: i32, target_confirmations: i32, amount: String, unit: String, direction: Direction) -> AddressCoinsTransactionConfirmedEachConfirmationDataItem {
AddressCoinsTransactionConfirmedEachConfirmationDataItem {
blockchain,
network,
address,
mined_in_block: Box::new(mined_in_block),
transaction_id,
current_confirmations,
target_confirmations,
amount,
unit,
direction,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Direction {
#[serde(rename = "incoming")]
Incoming,
#[serde(rename = "outgoing")]
Outgoing,
}