deriv_api_schema/trading_duration_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/trading_durations/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
12use crate::data_item::DataItem;
13use crate::market::Market;
14use crate::submarket::Submarket;
15
16// It's a struct
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct TradingDurationItem {
20 /// Available contract types and trading duration boundaries\n
21 // Correct serde attribute construction - Use helper
22 #[serde(skip_serializing_if = "Option::is_none")]
23 pub data: Option<Vec<DataItem>>,
24 /// The market in which the underlyings listed in `symbol` located.\n
25 // Correct serde attribute construction - Use helper
26 #[serde(skip_serializing_if = "Option::is_none")]
27 pub market: Option<Market>,
28 /// The submarket in which the underlyings listed in `symbol` located.\n
29 // Correct serde attribute construction - Use helper
30 #[serde(skip_serializing_if = "Option::is_none")]
31 pub submarket: Option<Submarket>,
32}
33