geoengine_api_client/models/
plot_output_format.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum PlotOutputFormat {
16 #[serde(rename = "JsonPlain")]
17 JsonPlain,
18 #[serde(rename = "JsonVega")]
19 JsonVega,
20 #[serde(rename = "ImagePng")]
21 ImagePng,
22
23}
24
25impl std::fmt::Display for PlotOutputFormat {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::JsonPlain => write!(f, "JsonPlain"),
29 Self::JsonVega => write!(f, "JsonVega"),
30 Self::ImagePng => write!(f, "ImagePng"),
31 }
32 }
33}
34
35impl Default for PlotOutputFormat {
36 fn default() -> PlotOutputFormat {
37 Self::JsonPlain
38 }
39}
40