pub trait RelationFilterMeta {
const PARENT_TABLE: &'static str;
const PARENT_PK: &'static str;
const CHILD_TABLE: &'static str;
const CHILD_FK: &'static str;
}Expand description
Static metadata for one parent→child relation, used when lowering relation filters to EXISTS / NOT EXISTS subqueries.
Phase 2 codegen emits one impl per relation declared in the schema. Hand-rolled callers can implement this trait themselves.
Distinct from crate::relations::RelationMeta, which carries runtime-loader metadata.
Required Associated Constants§
Sourceconst PARENT_TABLE: &'static str
const PARENT_TABLE: &'static str
Parent SQL table name.
Sourceconst CHILD_TABLE: &'static str
const CHILD_TABLE: &'static str
Child SQL table name.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".