pub trait ScopeEntry {
type Key;
type Nullable: Nullability;
type Sources;
}Expand description
Something that can be listed in FROM or JOIN: a table, view, alias, derived table, CTE, or raw SQL.
Table, view, and alias macros implement this for you. A column’s
Sources names its source as
Src<T>, and the scope check looks up T::Key in the query’s scope.
Tables and views are keyed by their SQL name (TableKey). Aliased
sources (Table::alias::<Tag>(), derived tables, CTEs) are keyed by
AliasKey<Tag>, because SQL resolves their columns by alias name.
Required Associated Types§
Sourcetype Nullable: Nullability
type Nullable: Nullability
Null when an outer join can leave this source NULL.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".