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
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListCoinsForwardingAutomationsResponseItem {
#[serde(rename = "callbackUrl")]
pub callback_url: String,
#[serde(rename = "confirmationsCountTrigger")]
pub confirmations_count_trigger: i32,
#[serde(rename = "createdTimestamp")]
pub created_timestamp: i32,
#[serde(rename = "feePriority")]
pub fee_priority: FeePriority,
#[serde(rename = "fromAddress")]
pub from_address: String,
#[serde(rename = "minimumTransferAmount")]
pub minimum_transfer_amount: String,
#[serde(rename = "referenceId")]
pub reference_id: String,
#[serde(rename = "toAddress")]
pub to_address: String,
}
impl ListCoinsForwardingAutomationsResponseItem {
pub fn new(callback_url: String, confirmations_count_trigger: i32, created_timestamp: i32, fee_priority: FeePriority, from_address: String, minimum_transfer_amount: String, reference_id: String, to_address: String) -> ListCoinsForwardingAutomationsResponseItem {
ListCoinsForwardingAutomationsResponseItem {
callback_url,
confirmations_count_trigger,
created_timestamp,
fee_priority,
from_address,
minimum_transfer_amount,
reference_id,
to_address,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FeePriority {
#[serde(rename = "slow")]
Slow,
#[serde(rename = "standard")]
Standard,
#[serde(rename = "fast")]
Fast,
}