Skip to main content

SQLForeignKey

Trait SQLForeignKey 

Source
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§

Source

type SourceTable

The table that declares the key.

Source

type TargetTable

The table the key references.

Source

type SourceColumns

The key’s columns in the source table, as a tuple.

Source

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".

Implementors§