2018-04-29 19:49:56 +02:00
|
|
|
use serde_json;
|
|
|
|
|
2018-04-24 16:52:47 +02:00
|
|
|
use activity_pub::actor::Actor;
|
|
|
|
use activity_pub::object::Object;
|
|
|
|
|
2018-04-29 19:49:56 +02:00
|
|
|
#[derive(Clone)]
|
|
|
|
pub struct Activity {}
|
|
|
|
impl Activity {
|
|
|
|
pub fn serialize(&self) -> serde_json::Value {
|
|
|
|
json!({})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-29 20:06:10 +02:00
|
|
|
#[allow(dead_code)]
|
2018-04-24 16:52:47 +02:00
|
|
|
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> {
|
2018-04-29 20:06:10 +02:00
|
|
|
#[allow(dead_code)]
|
2018-04-24 16:52:47 +02:00
|
|
|
pub fn new(by: &T, obj: U) -> Create<T, U> {
|
|
|
|
Create {
|
|
|
|
by: by,
|
|
|
|
object: obj
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-29 17:40:10 +02:00
|
|
|
|