use serde_json; use activity_pub::actor::Actor; use activity_pub::object::Object; #[derive(Clone)] pub struct Activity {} impl Activity { pub fn serialize(&self) -> serde_json::Value { json!({}) } } #[allow(dead_code)] pub struct Create<'a, T, U> where T: Actor + 'static, U: Object { by: &'a T, object: U } impl<'a, T: Actor, U: Object> Create<'a, T, U> { #[allow(dead_code)] pub fn new(by: &T, obj: U) -> Create { Create { by: by, object: obj } } }