Skip to main content

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