Skip to main content

geoengine_api_client/models/
resolution.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/// Resolution : Explicit output resolution (`x`, `y`) in target coordinates.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Resolution {
16    #[serde(rename = "type")]
17    pub r#type: Type,
18    #[serde(rename = "x")]
19    pub x: f64,
20    #[serde(rename = "y")]
21    pub y: f64,
22}
23
24impl Resolution {
25    /// Explicit output resolution (`x`, `y`) in target coordinates.
26    pub fn new(r#type: Type, x: f64, y: f64) -> Resolution {
27        Resolution {
28            r#type,
29            x,
30            y,
31        }
32    }
33}
34/// 
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Type {
37    #[serde(rename = "resolution")]
38    Resolution,
39}
40
41impl Default for Type {
42    fn default() -> Type {
43        Self::Resolution
44    }
45}
46