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