Plume/src/activity_pub/object.rs
2018-05-19 08:39:59 +01:00

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;
}