deriv_api_schema/landing_company_details_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/landing_company_details/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::landing_company_details::LandingCompanyDetails;
13
14/// The company has a number of licensed subsidiaries in various jurisdictions, which are called Landing Companies (and which are wholly owned subsidiaries of the Deriv Group). This call provides information about each Landing Company.
15#[derive(Debug, Clone, Serialize, Deserialize)]
16#[serde(rename_all = "snake_case")]
17pub struct LandingCompanyDetailsRequest {
18 /// [Optional] Will return an extra field `tin_not_mandatory` indicating if the landing company does not require tax identification number for the provided country.\n
19 // Correct serde attribute construction - Use helper
20 #[serde(skip_serializing_if = "Option::is_none")]
21 pub country: Option<String>,
22 /// Landing company shortcode.\n
23 // Correct serde attribute construction - Use helper
24
25 pub landing_company_details: LandingCompanyDetails,
26 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
27 // Correct serde attribute construction - Use helper
28 #[serde(skip_serializing_if = "Option::is_none")]
29 pub passthrough: Option<Value>,
30 /// [Optional] Used to map request to response.\n
31 // Correct serde attribute construction - Use helper
32 #[serde(skip_serializing_if = "Option::is_none")]
33 pub req_id: Option<i64>,
34}
35