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

/// GetDatabaseContextResponse : Response body for GET `/v1/databases/{database_id}/context/{name}`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDatabaseContextResponse {
    #[serde(rename = "context")]
    pub context: Box<models::DatabaseContextEntry>,
}

impl GetDatabaseContextResponse {
    /// Response body for GET `/v1/databases/{database_id}/context/{name}`.
    pub fn new(context: models::DatabaseContextEntry) -> GetDatabaseContextResponse {
        GetDatabaseContextResponse {
            context: Box::new(context),
        }
    }
}
