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
//! Constraint query contracts.
//!
//! This module contains query DTOs for `/schema/constraints`.

use serde::Deserialize;

/// Query parameters accepted by `/schema/constraints`.
#[derive(Deserialize)]
pub(in super::super) struct ConstraintQuery {
    /// Table name.
    pub(in super::super) table_name: String,
    /// Optional schema; defaults to `public` when omitted.
    #[serde(default)]
    pub(in super::super) table_schema: Option<String>,
}