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