use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PlotOutputFormat {
#[serde(rename = "JsonPlain")]
JsonPlain,
#[serde(rename = "JsonVega")]
JsonVega,
#[serde(rename = "ImagePng")]
ImagePng,
}
impl std::fmt::Display for PlotOutputFormat {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::JsonPlain => write!(f, "JsonPlain"),
Self::JsonVega => write!(f, "JsonVega"),
Self::ImagePng => write!(f, "ImagePng"),
}
}
}
impl Default for PlotOutputFormat {
fn default() -> PlotOutputFormat {
Self::JsonPlain
}
}