Skip to main content

EntityMeta

Trait EntityMeta 

Source
pub trait EntityMeta:
    Send
    + Sync
    + 'static {
    type Id: Send + Sync + Clone + 'static;

    // Required methods
    fn table_name() -> &'static str;
    fn id_value(&self) -> &Self::Id;

    // Provided method
    fn id_column() -> &'static str { ... }
}

Required Associated Types§

Source

type Id: Send + Sync + Clone + 'static

Required Methods§

Source

fn table_name() -> &'static str

Source

fn id_value(&self) -> &Self::Id

Provided Methods§

Source

fn id_column() -> &'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§