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
/*
* MicrovisionChain API Document
*
* API definition for MicrovisionChain provided apis
*
* The version of the OpenAPI document: 3.0.11
* Contact: heqiming@metasv.com
* Generated by: https://openapi-generator.tech
*/
/// AddressUtxo : Utxos by address(or addresses) order by height asc.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct AddressUtxo {
/// paging flag
#[serde(rename = "flag", skip_serializing_if = "Option::is_none")]
pub flag: Option<String>,
/// Address of the utxo
#[serde(rename = "address", skip_serializing_if = "Option::is_none")]
pub address: Option<String>,
/// txid of the utxo
#[serde(rename = "txid", skip_serializing_if = "Option::is_none")]
pub txid: Option<String>,
/// output index in the tx
#[serde(rename = "outIndex", skip_serializing_if = "Option::is_none")]
pub out_index: Option<i32>,
/// Value of the utxo
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<i64>,
/// Height of the utxo, -1 if not confirmed
#[serde(rename = "height", skip_serializing_if = "Option::is_none")]
pub height: Option<i64>,
}
impl AddressUtxo {
/// Utxos by address(or addresses) order by height asc.
pub fn new() -> AddressUtxo {
AddressUtxo {
flag: None,
address: None,
txid: None,
out_index: None,
value: None,
height: None,
}
}
}