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

/// ConnectionTypeSummary : Summary entry for the connection-type list endpoint.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectionTypeSummary {
    #[serde(rename = "label")]
    pub label: String,
    #[serde(rename = "name")]
    pub name: String,
}

impl ConnectionTypeSummary {
    /// Summary entry for the connection-type list endpoint.
    pub fn new(label: String, name: String) -> ConnectionTypeSummary {
        ConnectionTypeSummary { label, name }
    }
}
