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 * 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/// StatisticsParameters : The parameter spec for `Statistics`
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StatisticsParameters {
17 /// # 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.
18 #[serde(rename = "columnNames", skip_serializing_if = "Option::is_none")]
19 pub column_names: Option<Vec<String>>,
20 /// The percentiles to compute for each attribute.
21 #[serde(rename = "percentiles", skip_serializing_if = "Option::is_none")]
22 pub percentiles: Option<Vec<f64>>,
23}
24
25impl StatisticsParameters {
26 /// The parameter spec for `Statistics`
27 pub fn new() -> StatisticsParameters {
28 StatisticsParameters {
29 column_names: None,
30 percentiles: None,
31 }
32 }
33}
34