Skip to main content

ForeignKey

Trait ForeignKey 

Source
pub trait ForeignKey<M, K>: Field<M, K> { }
Expand description

A field of the child model M holding the owner’s primary key, of type K: a lens! or a field path over a K column, or an Option<K> one for an optional reference. Sealed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<M, K, F: Field<M, K>> ForeignKey<M, K> for F