Skip to main content

HasForeignKey

Trait HasForeignKey 

Source
pub trait HasForeignKey<M: Model> {
    // Required method
    fn foreign_key_info() -> (&'static str, Vec<(&'static str, &'static str)>);
}

Required Methods§

Source

fn foreign_key_info() -> (&'static str, Vec<(&'static str, &'static str)>)

Returns the table name of the child and a list of (child_column, parent_column) mappings.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§