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