deriv_api_schema/
result_item_any_of_sub0.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/buy_contract_for_multiple_accounts/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize}; 
7
8
9
10
11// Import shared types from the *same* crate
12
13// It's a struct
14/// Receipt for one contract
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct ResultItemAnyOfSub0 {
18    /// Actual effected purchase price\n
19    // Correct serde attribute construction - Use helper
20    
21    pub buy_price: String,
22    /// Internal contract identifier\n
23    // Correct serde attribute construction - Use helper
24    
25    pub contract_id: i64,
26    /// The description of contract purchased\n
27    // Correct serde attribute construction - Use helper
28    
29    pub longcode: String,
30    /// Proposed payout value\n
31    // Correct serde attribute construction - Use helper
32    
33    pub payout: String,
34    /// Epoch value of the transaction purchase time\n
35    // Correct serde attribute construction - Use helper
36    
37    pub purchase_time: String,
38    /// Compact description of the contract purchased\n
39    // Correct serde attribute construction - Use helper
40    
41    pub shortcode: String,
42    /// Epoch value showing the expected start time of the contract\n
43    // Correct serde attribute construction - Use helper
44    
45    pub start_time: String,
46    /// The token designating the account\n
47    // Correct serde attribute construction - Use helper
48    
49    pub token: String,
50    /// Internal transaction identifier\n
51    // Correct serde attribute construction - Use helper
52    
53    pub transaction_id: i64,
54}
55