forked from Plume/Plume
8 lines
189 B
Rust
8 lines
189 B
Rust
use diesel::PgConnection;
|
|
use serde_json;
|
|
|
|
pub trait Object {
|
|
fn serialize(&self, conn: &PgConnection) -> serde_json::Value;
|
|
|
|
fn compute_id(&self, conn: &PgConnection) -> String;
|
|
}
|