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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Resolution : Explicit output resolution (`x`, `y`) in target coordinates.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Resolution {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    #[serde(rename = "x")]
20    pub x: f64,
21    #[serde(rename = "y")]
22    pub y: f64,
23}
24
25impl Resolution {
26    /// Explicit output resolution (`x`, `y`) in target coordinates.
27    pub fn new(r#type: Type, x: f64, y: f64) -> Resolution {
28        Resolution {
29            r#type,
30            x,
31            y,
32        }
33    }
34}
35/// 
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Type {
38    #[serde(rename = "resolution")]
39    Resolution,
40}
41
42impl Default for Type {
43    fn default() -> Type {
44        Self::Resolution
45    }
46}
47