/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DatasetSourceOneOf4 {
    #[serde(rename = "inline")]
    pub inline: Box<models::InlineData>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl DatasetSourceOneOf4 {
    pub fn new(inline: models::InlineData, r#type: Type) -> DatasetSourceOneOf4 {
        DatasetSourceOneOf4 {
            inline: Box::new(inline),
            r#type,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "inline")]
    Inline,
}

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