Skip to main content

geoengine_api_client/models/
fraction.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/// Fraction : Upscale factor relative to input resolution (`x >= 1`, `y >= 1`).
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Fraction {
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 Fraction {
25    /// Upscale factor relative to input resolution (`x >= 1`, `y >= 1`).
26    pub fn new(r#type: Type, x: f64, y: f64) -> Fraction {
27        Fraction {
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 = "fraction")]
38    Fraction,
39}
40
41impl Default for Type {
42    fn default() -> Type {
43        Self::Fraction
44    }
45}
46