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