use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GdalMetaDataList {
#[serde(rename = "params")]
pub params: Vec<models::GdalLoadingInfoTemporalSlice>,
#[serde(rename = "resultDescriptor")]
pub result_descriptor: Box<models::RasterResultDescriptor>,
#[serde(rename = "type")]
pub r#type: Type,
}
impl GdalMetaDataList {
pub fn new(params: Vec<models::GdalLoadingInfoTemporalSlice>, result_descriptor: models::RasterResultDescriptor, r#type: Type) -> GdalMetaDataList {
GdalMetaDataList {
params,
result_descriptor: Box::new(result_descriptor),
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "GdalMetaDataList")]
GdalMetaDataList,
}
impl Default for Type {
fn default() -> Type {
Self::GdalMetaDataList
}
}