geoengine-api-client 0.0.33

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)
 *
 * The version of the OpenAPI document: 0.9.0
 * 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 EdrDataProviderDefinition {
    #[serde(rename = "baseUrl")]
    pub base_url: String,
    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
    pub cache_ttl: Option<i32>,
    #[serde(rename = "description")]
    pub description: String,
    /// List of vertical reference systems with a discrete scale
    #[serde(rename = "discreteVrs", skip_serializing_if = "Option::is_none")]
    pub discrete_vrs: Option<Vec<String>>,
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub priority: Option<Option<i32>>,
    #[serde(rename = "provenance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub provenance: Option<Option<Vec<models::Provenance>>>,
    #[serde(rename = "type")]
    pub r#type: Type,
    #[serde(rename = "vectorSpec", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub vector_spec: Option<Option<Box<models::EdrVectorSpec>>>,
}

impl EdrDataProviderDefinition {
    pub fn new(base_url: String, description: String, id: uuid::Uuid, name: String, r#type: Type) -> EdrDataProviderDefinition {
        EdrDataProviderDefinition {
            base_url,
            cache_ttl: None,
            description,
            discrete_vrs: None,
            id,
            name,
            priority: None,
            provenance: None,
            r#type,
            vector_spec: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "Edr")]
    Edr,
}

impl Default for Type {
    fn default() -> Type {
        Self::Edr
    }
}