Skip to main content

ForeignKey

Trait ForeignKey 

Source
pub trait ForeignKey<K>:
    Sealed<K>
    + IntoExpr<Self>
    + FormScalar
    + Send
    + Sync
    + 'static { }
Expand description

A foreign-key column type referencing a primary key of type K: K itself, or Option<K> for an optional reference. Sealed: these are the only two.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<K> ForeignKey<K> for Option<K>
where Option<K>: IntoExpr<Self> + FormScalar + Send + Sync + 'static,

Implementors§

Source§

impl<K> ForeignKey<K> for K
where K: IntoExpr<K> + FormScalar + Send + Sync + 'static,