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
81
82
83
84
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListOmniTransactionsByBlockHashRi {
#[serde(rename = "amount")]
pub amount: String,
#[serde(rename = "divisible")]
pub divisible: bool,
#[serde(rename = "minedInBlockHash")]
pub mined_in_block_hash: String,
#[serde(rename = "minedInBlockHeight")]
pub mined_in_block_height: i32,
#[serde(rename = "positionInBlock")]
pub position_in_block: i32,
#[serde(rename = "propertyId")]
pub property_id: i32,
#[serde(rename = "recipients")]
pub recipients: Vec<crate::models::ListOmniTransactionsByAddressRiRecipients>,
#[serde(rename = "senders")]
pub senders: Vec<crate::models::ListOmniTransactionsByAddressRiSenders>,
#[serde(rename = "timestamp")]
pub timestamp: i32,
#[serde(rename = "transactionId")]
pub transaction_id: String,
#[serde(rename = "type")]
pub _type: String,
#[serde(rename = "typeInt")]
pub type_int: i32,
#[serde(rename = "valid")]
pub valid: bool,
#[serde(rename = "version")]
pub version: i32,
#[serde(rename = "fee")]
pub fee: Box<crate::models::ListOmniTransactionsByBlockHashRiFee>,
}
impl ListOmniTransactionsByBlockHashRi {
pub fn new(amount: String, divisible: bool, mined_in_block_hash: String, mined_in_block_height: i32, position_in_block: i32, property_id: i32, recipients: Vec<crate::models::ListOmniTransactionsByAddressRiRecipients>, senders: Vec<crate::models::ListOmniTransactionsByAddressRiSenders>, timestamp: i32, transaction_id: String, _type: String, type_int: i32, valid: bool, version: i32, fee: crate::models::ListOmniTransactionsByBlockHashRiFee) -> ListOmniTransactionsByBlockHashRi {
ListOmniTransactionsByBlockHashRi {
amount,
divisible,
mined_in_block_hash,
mined_in_block_height,
position_in_block,
property_id,
recipients,
senders,
timestamp,
transaction_id,
_type,
type_int,
valid,
version,
fee: Box::new(fee),
}
}
}