TableSchema

Trait TableSchema 

Source
pub trait TableSchema: Table {
    const SCHEMA: &'static [ColumnSchema];
}
Expand description

Tables that provide full column schema for DDL generation.

Implemented by the #[derive(Table)] macro alongside the Table trait. While Table gives you column names, TableSchema gives you full column metadata (types, constraints, defaults) needed to generate CREATE TABLE statements.

Required Associated Constants§

Source

const SCHEMA: &'static [ColumnSchema]

Complete schema for every column in declaration order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§