geoengine-api-client 0.9.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OgrSourceTimeFormatCustom {
    #[serde(rename = "customFormat")]
    pub custom_format: String,
    #[serde(rename = "format")]
    pub format: Format,
}

impl OgrSourceTimeFormatCustom {
    pub fn new(custom_format: String, format: Format) -> OgrSourceTimeFormatCustom {
        OgrSourceTimeFormatCustom {
            custom_format,
            format,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Format {
    #[serde(rename = "custom")]
    Custom,
}

impl Default for Format {
    fn default() -> Format {
        Self::Custom
    }
}