hotdata 0.1.2

Powerful data platform API for datasets, queries, and analytics.
Documentation
/*
 * 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 ColumnProfileDetailOneOf {
    /// Distinct values with their counts, ordered by count descending
    #[serde(rename = "values")]
    pub values: Vec<models::CategoryValueInfo>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl ColumnProfileDetailOneOf {
    pub fn new(values: Vec<models::CategoryValueInfo>, r#type: Type) -> ColumnProfileDetailOneOf {
        ColumnProfileDetailOneOf { values, r#type }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "categorical")]
    Categorical,
}

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