geoengine_api_client/models/
wrapped_plot_output.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct WrappedPlotOutput {
15 #[serde(rename = "data")]
16 pub data: serde_json::Value,
17 #[serde(rename = "outputFormat")]
18 pub output_format: models::PlotOutputFormat,
19 #[serde(rename = "plotType")]
20 pub plot_type: String,
21}
22
23impl WrappedPlotOutput {
24 pub fn new(data: serde_json::Value, output_format: models::PlotOutputFormat, plot_type: String) -> WrappedPlotOutput {
25 WrappedPlotOutput {
26 data,
27 output_format,
28 plot_type,
29 }
30 }
31}
32