pub trait SQLForeignKey {
type SourceTable;
type TargetTable;
type SourceColumns;
type TargetColumns;
}Expand description
A foreign key described by types, generated by the table macros.
Required Associated Types§
Sourcetype SourceTable
type SourceTable
The table that declares the key.
Sourcetype TargetTable
type TargetTable
The table the key references.
Sourcetype SourceColumns
type SourceColumns
The key’s columns in the source table, as a tuple.
Sourcetype TargetColumns
type TargetColumns
The referenced columns in the target table, as a tuple.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".