geoengine-api-client 0.9.1

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 CopernicusDataspaceDataProviderDefinition {
    #[serde(rename = "description")]
    pub description: String,
    #[serde(rename = "gdalConfig")]
    pub gdal_config: Vec<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 = "s3AccessKey")]
    pub s3_access_key: String,
    #[serde(rename = "s3SecretKey")]
    pub s3_secret_key: String,
    #[serde(rename = "s3Url")]
    pub s3_url: String,
    #[serde(rename = "stacUrl")]
    pub stac_url: String,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl CopernicusDataspaceDataProviderDefinition {
    pub fn new(description: String, gdal_config: Vec<Vec<String>>, id: uuid::Uuid, name: String, s3_access_key: String, s3_secret_key: String, s3_url: String, stac_url: String, r#type: Type) -> CopernicusDataspaceDataProviderDefinition {
        CopernicusDataspaceDataProviderDefinition {
            description,
            gdal_config,
            id,
            name,
            priority: None,
            s3_access_key,
            s3_secret_key,
            s3_url,
            stac_url,
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "CopernicusDataspace")]
    CopernicusDataspace,
}

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