deriv_api_schema/
server_info.rs

1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/mt5_login_list/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::environment::Environment; 
13use crate::geolocation::Geolocation; 
14
15// It's a struct
16/// Trade server information.
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct ServerInfo {
20    /// The environment. E.g. Deriv-Server.\n
21    // Correct serde attribute construction - Use helper
22    #[serde(skip_serializing_if = "Option::is_none")] 
23    pub environment: Option<Environment>,
24    /// Geographical location of the server.\n
25    // Correct serde attribute construction - Use helper
26    #[serde(skip_serializing_if = "Option::is_none")] 
27    pub geolocation: Option<Geolocation>,
28    /// Server id.\n
29    // Correct serde attribute construction - Use helper
30    #[serde(skip_serializing_if = "Option::is_none")] 
31    pub id: Option<String>,
32}
33