1 use activitystreams::{activity::kind::UndoType, unparsed::Unparsed};
2 use serde::{Deserialize, Serialize};
5 use lemmy_apub_lib::traits::ActivityFields;
8 fetcher::object_id::ObjectId,
9 objects::person::ApubPerson,
10 protocol::activities::deletion::delete::Delete,
13 #[derive(Clone, Debug, Deserialize, Serialize, ActivityFields)]
14 #[serde(rename_all = "camelCase")]
15 pub struct UndoDelete {
16 pub(crate) actor: ObjectId<ApubPerson>,
17 pub(crate) to: Vec<Url>,
18 pub(crate) object: Delete,
19 pub(crate) cc: Vec<Url>,
20 #[serde(rename = "type")]
21 pub(crate) kind: UndoType,
24 pub(crate) unparsed: Unparsed,