1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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};
/// HistogramParameters : The parameter spec for `Histogram`
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HistogramParameters {
/// If `data`, it computes the bounds of the underlying data. If `{ \"min\": ..., \"max\": ... }`, one can specify custom bounds.
#[serde(rename = "bounds")]
pub bounds: Box<models::HistogramBounds>,
/// The number of buckets. The value can be specified or calculated.
#[serde(rename = "buckets")]
pub buckets: Box<models::HistogramBuckets>,
/// Name of the (numeric) vector attribute or raster band to compute the histogram on.
#[serde(rename = "columnName")]
pub column_name: String,
/// Flag, if the histogram should have user interactions for a range selection. It is `false` by default.
#[serde(rename = "interactive", skip_serializing_if = "Option::is_none")]
pub interactive: Option<bool>,
}
impl HistogramParameters {
/// The parameter spec for `Histogram`
pub fn new(bounds: models::HistogramBounds, buckets: models::HistogramBuckets, column_name: String) -> HistogramParameters {
HistogramParameters {
bounds: Box::new(bounds),
buckets: Box::new(buckets),
column_name,
interactive: None,
}
}
}