athena_rs 3.22.1

Hyper performant polyglot Database driver
Documentation
//! Schema-overview response contracts.
//!
//! This module contains nested overview payload contracts returned by `/schema`.

use serde::Serialize;

use super::columns::SchemaColumn;

/// Nested table metadata returned by `/schema`.
#[derive(Serialize)]
pub(in super::super) struct SchemaTableWithColumns {
    /// Table name.
    pub(in super::super) table_name: String,
    /// Column metadata for the table.
    pub(in super::super) columns: Vec<SchemaColumn>,
}

/// Top-level schema overview payload returned by `/schema`.
#[derive(Serialize)]
pub(in super::super) struct SchemaOverview {
    /// Requested schema name.
    pub(in super::super) schema_name: String,
    /// Tables discovered under the schema.
    pub(in super::super) tables: Vec<SchemaTableWithColumns>,
}