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 CreateAutomaticTokensForwardingRi {
#[serde(rename = "callbackUrl")]
pub callback_url: String,
#[serde(rename = "confirmationsCount")]
pub confirmations_count: i32,
#[serde(rename = "createdTimestamp")]
pub created_timestamp: i32,
#[serde(rename = "feeAddress")]
pub fee_address: String,
#[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,
#[serde(rename = "tokenData")]
pub token_data: Box<crate::models::CreateAutomaticTokensForwardingRits>,
}
impl CreateAutomaticTokensForwardingRi {
pub fn new(callback_url: String, confirmations_count: i32, created_timestamp: i32, fee_address: String, fee_priority: FeePriority, from_address: String, minimum_transfer_amount: String, reference_id: String, to_address: String, token_data: crate::models::CreateAutomaticTokensForwardingRits) -> CreateAutomaticTokensForwardingRi {
CreateAutomaticTokensForwardingRi {
callback_url,
confirmations_count,
created_timestamp,
fee_address,
fee_priority,
from_address,
minimum_transfer_amount,
reference_id,
to_address,
token_data: Box::new(token_data),
}
}
}
#[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,
}