Skip to main content

geoengine_api_client/models/
plot_output_format.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13/// 
14#[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