deriv_api_schema/
trading_times.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/trading_times/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::market_item::MarketItem; 
13
14// It's a struct
15/// The trading times structure is a hierarchy as follows: Market -> SubMarket -> Underlyings
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct TradingTimes {
19    /// An array of markets\n
20    // Correct serde attribute construction - Use helper
21    
22    pub markets: Vec<MarketItem>,
23}
24