oanda_v20_openapi/models/
instrument_position_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InstrumentPositionResponse {
16 #[serde(rename = "position", skip_serializing_if = "Option::is_none")]
17 pub position: Option<Box<models::Position>>,
18 #[serde(rename = "lastTransactionID", skip_serializing_if = "Option::is_none")]
20 pub last_transaction_id: Option<String>,
21}
22
23impl InstrumentPositionResponse {
24 pub fn new() -> InstrumentPositionResponse {
25 InstrumentPositionResponse {
26 position: None,
27 last_transaction_id: None,
28 }
29 }
30}
31