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