| 1234567891011121314151617181920212223242526 |
- use serde_derive::{Deserialize, Serialize};
- #[derive(Debug, Serialize, Deserialize, Clone)]
- pub struct ClearPositionResult {
- pub r_id: String,
- pub clear_order_num: String,
- pub clear_order_str: String,
- pub clear_position_num: String,
- pub clear_position_str: String,
- pub clear_other_err: bool,
- pub clear_other_str: String
- }
- impl ClearPositionResult {
- pub fn new() -> ClearPositionResult {
- ClearPositionResult{
- r_id: "".to_string(),
- clear_order_num: "0".to_string(),
- clear_order_str: "".to_string(),
- clear_position_num: "0".to_string(),
- clear_position_str: "".to_string(),
- clear_other_err: false,
- clear_other_str: "".to_string(),
- }
- }
- }
|