Skip to main content

geoengine_api_client/models/
gdal_metadata_mapping.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GdalMetadataMapping {
16    #[serde(rename = "source_key")]
17    pub source_key: Box<models::RasterPropertiesKey>,
18    #[serde(rename = "target_key")]
19    pub target_key: Box<models::RasterPropertiesKey>,
20    #[serde(rename = "target_type")]
21    pub target_type: models::RasterPropertiesEntryType,
22}
23
24impl GdalMetadataMapping {
25    pub fn new(source_key: models::RasterPropertiesKey, target_key: models::RasterPropertiesKey, target_type: models::RasterPropertiesEntryType) -> GdalMetadataMapping {
26        GdalMetadataMapping {
27            source_key: Box::new(source_key),
28            target_key: Box::new(target_key),
29            target_type,
30        }
31    }
32}
33