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

/// ConnectionInfo : Single connection metadata for API responses
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectionInfo {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "source_type")]
    pub source_type: String,
}

impl ConnectionInfo {
    /// Single connection metadata for API responses
    pub fn new(id: String, name: String, source_type: String) -> ConnectionInfo {
        ConnectionInfo {
            id,
            name,
            source_type,
        }
    }
}
