1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Ethereal Exchange API
*
* Ethereal HTTP API for real-time trading, order management, and market data access.
*
* The version of the OpenAPI document: 0.1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubmitOrderCreatedDto {
/// Id representing the created order
#[serde(rename = "id")]
pub id: uuid::Uuid,
/// A subaccount scoped unique client-generated order id (either a UUID or alphanumeric string up to 32 characters)
#[serde(rename = "clientOrderId", skip_serializing_if = "Option::is_none")]
pub client_order_id: Option<String>,
/// Filled amount in native units expressed as a decimal (precision: 9)
#[serde(rename = "filled")]
pub filled: String,
#[serde(rename = "result")]
pub result: models::ResultEnum,
}
impl SubmitOrderCreatedDto {
pub fn new(
id: uuid::Uuid,
filled: String,
result: models::ResultEnum,
) -> SubmitOrderCreatedDto {
SubmitOrderCreatedDto {
id,
client_order_id: None,
filled,
result,
}
}
}