clear_position_result.rs 771 B

1234567891011121314151617181920212223242526
  1. use serde_derive::{Deserialize, Serialize};
  2. #[derive(Debug, Serialize, Deserialize, Clone)]
  3. pub struct ClearPositionResult {
  4. pub r_id: String,
  5. pub clear_order_num: String,
  6. pub clear_order_str: String,
  7. pub clear_position_num: String,
  8. pub clear_position_str: String,
  9. pub clear_other_err: bool,
  10. pub clear_other_str: String
  11. }
  12. impl ClearPositionResult {
  13. pub fn new() -> ClearPositionResult {
  14. ClearPositionResult{
  15. r_id: "".to_string(),
  16. clear_order_num: "0".to_string(),
  17. clear_order_str: "".to_string(),
  18. clear_position_num: "0".to_string(),
  19. clear_position_str: "".to_string(),
  20. clear_other_err: false,
  21. clear_other_str: "".to_string(),
  22. }
  23. }
  24. }