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
/*
* 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
*/
/// XpubRequest : Request object to register(or delete) a new xpub
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct XpubRequest {
/// The xpub to register.
#[serde(rename = "xpub", skip_serializing_if = "Option::is_none")]
pub xpub: Option<String>,
/// Skip transactions before this height. Default is 0. Ignore this while deleting xpub.
#[serde(rename = "skipHeight", skip_serializing_if = "Option::is_none")]
pub skip_height: Option<i64>,
/// Set the init maxReceiveIndex to {initReceiveIndex}(less than 5000) before the initial crawl , default is 200. This could increase cost.
#[serde(rename = "initReceiveIndex", skip_serializing_if = "Option::is_none")]
pub init_receive_index: Option<i32>,
/// Set the init maxChangeIndex(less than 5000) before the initial crawl , default is 200. This could increase cost.
#[serde(rename = "initChangeIndex", skip_serializing_if = "Option::is_none")]
pub init_change_index: Option<i32>,
}
impl XpubRequest {
/// Request object to register(or delete) a new xpub
pub fn new() -> XpubRequest {
XpubRequest {
xpub: None,
skip_height: None,
init_receive_index: None,
init_change_index: None,
}
}
}