pub trait Entity: TeaqlEntity + Sized {
// Required methods
fn from_record(record: Record) -> Result<Self, EntityError>;
fn into_record(self) -> Record;
// Provided method
fn into_json(self) -> Value { ... }
}Required Methods§
fn from_record(record: Record) -> Result<Self, EntityError>
fn into_record(self) -> Record
Provided Methods§
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.