pub trait ManyToMany<T: Entity>: Entity {
// Required methods
fn join_table() -> &'static str;
fn local_key() -> &'static str;
fn foreign_key() -> &'static str;
}Expand description
Required Methods§
Sourcefn join_table() -> &'static str
fn join_table() -> &'static str
中间表名
Sourcefn foreign_key() -> &'static str
fn foreign_key() -> &'static str
外键列名(中间表中指向关联表的列名)
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.