geoengine_api_client/models/
last_aggregation.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct LastAggregation {
15 #[serde(rename = "ignoreNoData")]
16 pub ignore_no_data: bool,
17 #[serde(rename = "type")]
18 pub r#type: Type,
19}
20
21impl LastAggregation {
22 pub fn new(ignore_no_data: bool, r#type: Type) -> LastAggregation {
23 LastAggregation {
24 ignore_no_data,
25 r#type,
26 }
27 }
28}
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Type {
32 #[serde(rename = "last")]
33 Last,
34}
35
36impl Default for Type {
37 fn default() -> Type {
38 Self::Last
39 }
40}
41