deriv_api_schema/leverage_trading_high_risk_stop_loss.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/new_account_maltainvest/send.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
12
13/// Leverage trading is high-risk, so it's a good idea to use risk management features such as stop loss. Stop loss allows you to
14#[derive(Debug, Clone, Serialize, Deserialize)] // Enums should also derive Serialize/Deserialize
15#[serde(rename_all = "snake_case")]
16pub enum LeverageTradingHighRiskStopLoss {
17 Cancel_Your_Trade_At_Any_Time_Within_A_Chosen_Timeframe,
18 Close_Your_Trade_Automatically_When_The_Loss_Is_More_Than_Or_Equal_To_A_Specific_Amount,
19 Close_Your_Trade_Automatically_When_The_Profit_Is_More_Than_Or_Equal_To_A_Specific_Amount,
20 Make_A_Guaranteed_Profit_On_Your_Trade,
21}
22
23// Optional: Derive Default for enums, defaulting to the first variant? Or require explicit handling?
24// For now, DO NOT derive Default for enums automatically. Structs needing them must handle it.
25
26/* // Example: Deriving Default for Enum (use with caution)
27impl Default for LeverageTradingHighRiskStopLoss {
28 fn default() -> Self {
29 // Default to the first variant found
30 Self::Cancel_Your_Trade_At_Any_Time_Within_A_Chosen_Timeframe
31 }
32}
33*/
34