pub trait Model:
Sized
+ Send
+ Sync
+ 'static {
const TABLE: &'static str;
// Required methods
fn columns() -> &'static [ColumnDef];
fn decode(row: &Row) -> Result<Self, DecodeError>;
fn encode(&self) -> Vec<(&'static str, Value)>;
}Expand description
A table owned by core or a plugin. #[derive(Model)] writes this.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".