Trait TableName

Source
pub trait TableName {
    // Required method
    fn table_name() -> &'static str;
}
Expand description

定义一个 trait,用于获取表名

Required Methods§

Source

fn table_name() -> &'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.

Implementors§