osdm_sys/models/
exchange_operation_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
16pub struct ExchangeOperationResponse {
17 #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
18 pub warnings: Option<Box<models::WarningCollection>>,
19 #[serde(rename = "problems", skip_serializing_if = "Option::is_none")]
20 pub problems: Option<Vec<models::Problem>>,
21 #[serde(rename = "exchangeOperation", skip_serializing_if = "Option::is_none")]
22 pub exchange_operation: Option<Box<models::ExchangeOperation>>,
23}
24
25impl ExchangeOperationResponse {
26 pub fn new() -> ExchangeOperationResponse {
27 ExchangeOperationResponse {
28 warnings: None,
29 problems: None,
30 exchange_operation: None,
31 }
32 }
33}
34