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