/*
 * Hotdata API
 *
 * Powerful data platform API for datasets, queries, and analytics.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: developers@hotdata.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DatasetVersionSummary : Dataset version summary
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DatasetVersionSummary {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "source_type")]
    pub source_type: String,
    #[serde(rename = "version")]
    pub version: i32,
}

impl DatasetVersionSummary {
    /// Dataset version summary
    pub fn new(
        created_at: String,
        id: String,
        source_type: String,
        version: i32,
    ) -> DatasetVersionSummary {
        DatasetVersionSummary {
            created_at,
            id,
            source_type,
            version,
        }
    }
}
