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 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct PercentileEstimateAggregation {
15    #[serde(rename = "ignoreNoData")]
16    pub ignore_no_data: bool,
17    #[serde(rename = "percentile")]
18    pub percentile: f64,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl PercentileEstimateAggregation {
24    pub fn new(ignore_no_data: bool, percentile: f64, r#type: Type) -> PercentileEstimateAggregation {
25        PercentileEstimateAggregation {
26            ignore_no_data,
27            percentile,
28            r#type,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "percentileEstimate")]
36    PercentileEstimate,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::PercentileEstimate
42    }
43}
44