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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[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