Skip to main content

geoengine_api_client/models/
interpolation_method.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13/// 
14#[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