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 ArunaDataProviderDefinition {
    #[serde(rename = "apiToken")]
    pub api_token: String,
    #[serde(rename = "apiUrl")]
    pub api_url: String,
    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
    pub cache_ttl: Option<i32>,
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "filterLabel")]
    pub filter_label: 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 = "projectId")]
    pub project_id: String,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl ArunaDataProviderDefinition {
    pub fn new(api_token: String, api_url: String, description: String, filter_label: String, id: uuid::Uuid, name: String, project_id: String, r#type: Type) -> ArunaDataProviderDefinition {
        ArunaDataProviderDefinition {
            api_token,
            api_url,
            cache_ttl: None,
            description,
            filter_label,
            id,
            name,
            priority: None,
            project_id,
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "Aruna")]
    Aruna,
}

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