deriv_api_schema/website_status_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/website_status/send.json
4
5// Use direct crate names for imports
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import required types from the *same* crate
12use crate::subscribe::Subscribe;
13
14/// Request server status.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct WebsiteStatusRequest {
18 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
19 // Correct serde attribute construction - Use helper
20 #[serde(skip_serializing_if = "Option::is_none")]
21 pub passthrough: Option<Value>,
22 /// [Optional] Used to map request to response.\n
23 // Correct serde attribute construction - Use helper
24 #[serde(skip_serializing_if = "Option::is_none")]
25 pub req_id: Option<i64>,
26 /// [Optional] `1` to stream the server/website status updates.\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub subscribe: Option<Subscribe>,
30 /// Must be `1`\n
31 // Correct serde attribute construction - Use helper
32
33 pub website_status: i64,
34}
35