Skip to main content

Table

Trait Table 

Source
pub trait Table: 'static {
    const NAME: &'static str;
}
Expand description

Marker trait for anything that represents a table in a query’s scope. NAME is what the SQL renderer prints, kept as a trait const rather than derived from the Rust type name so the derive macro can freely rename tables.

Known limitation: no schema qualification — a table is rendered bare, so search_path decides which one it is.

Required Associated Constants§

Source

const NAME: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§