geoengine_api_client/models/statistics_parameters.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/// StatisticsParameters : The parameter spec for `Statistics`
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StatisticsParameters {
16 /// # Vector data The names of the attributes to generate statistics for. # Raster data _Optional_: An alias for each input source. The operator will automatically name the rasters `Raster-1`, `Raster-2`, … if this parameter is empty. If aliases are given, the number of aliases must match the number of input rasters. Otherwise an error is returned.
17 #[serde(rename = "columnNames", skip_serializing_if = "Option::is_none")]
18 pub column_names: Option<Vec<String>>,
19 /// The percentiles to compute for each attribute.
20 #[serde(rename = "percentiles", skip_serializing_if = "Option::is_none")]
21 pub percentiles: Option<Vec<f64>>,
22}
23
24impl StatisticsParameters {
25 /// The parameter spec for `Statistics`
26 pub fn new() -> StatisticsParameters {
27 StatisticsParameters {
28 column_names: None,
29 percentiles: None,
30 }
31 }
32}
33