geoengine-api-client 0.9.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Geo Engine API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * Contact: dev@geoengine.de
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Fraction : Upscale factor relative to input resolution (`x >= 1`, `y >= 1`).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Fraction {
    #[serde(rename = "type")]
    pub r#type: Type,
    #[serde(rename = "x")]
    pub x: f64,
    #[serde(rename = "y")]
    pub y: f64,
}

impl Fraction {
    /// Upscale factor relative to input resolution (`x >= 1`, `y >= 1`).
    pub fn new(r#type: Type, x: f64, y: f64) -> Fraction {
        Fraction {
            r#type,
            x,
            y,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "fraction")]
    Fraction,
}

impl Default for Type {
    fn default() -> Type {
        Self::Fraction
    }
}