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