Trait EntryModel

Source
pub trait EntryModel<T>{
    // Required methods
    fn name() -> &'static str;
    fn get_type(&self) -> String;
    fn to_input(&self) -> T;
}
Expand description

Identifies a struct as an Entity model type

Required Methods§

Source

fn name() -> &'static str

Source

fn get_type(&self) -> String

Source

fn to_input(&self) -> T

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§