FromDbModel

Trait FromDbModel 

Source
pub trait FromDbModel<T> {
    // Required method
    fn from_db_model(model: T) -> Self;
}
Expand description

Trait for converting from a database model to a shared type.

Required Methods§

Source

fn from_db_model(model: T) -> Self

Convert from the database model.

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§