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
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/buy_contract_for_multiple_accounts/receive.json
// Use direct crate names for imports within generated files
use serde::{Deserialize, Serialize};
// Import shared types from the *same* crate
// It's a struct
/// Receipt for one contract
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct ResultItemAnyOfSub0 {
/// Actual effected purchase price\n
// Correct serde attribute construction - Use helper
pub buy_price: String,
/// Internal contract identifier\n
// Correct serde attribute construction - Use helper
pub contract_id: i64,
/// The description of contract purchased\n
// Correct serde attribute construction - Use helper
pub longcode: String,
/// Proposed payout value\n
// Correct serde attribute construction - Use helper
pub payout: String,
/// Epoch value of the transaction purchase time\n
// Correct serde attribute construction - Use helper
pub purchase_time: String,
/// Compact description of the contract purchased\n
// Correct serde attribute construction - Use helper
pub shortcode: String,
/// Epoch value showing the expected start time of the contract\n
// Correct serde attribute construction - Use helper
pub start_time: String,
/// The token designating the account\n
// Correct serde attribute construction - Use helper
pub token: String,
/// Internal transaction identifier\n
// Correct serde attribute construction - Use helper
pub transaction_id: i64,
}