athena_rs 3.22.1

Hyper performant polyglot Database driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Column response contracts.
//!
//! This module contains column payload contracts shared by schema endpoints.

use serde::Serialize;

/// Column metadata returned by `/schema` and `/schema/columns`.
#[derive(Serialize)]
pub(in super::super) struct SchemaColumn {
    /// Column name.
    pub(in super::super) column_name: String,
    /// Postgres data type.
    pub(in super::super) data_type: Option<String>,
    /// Default expression when present.
    pub(in super::super) column_default: Option<String>,
    /// `YES` / `NO` nullable flag from information_schema.
    pub(in super::super) is_nullable: Option<String>,
}