1 use crate::{objects::person::ApubPerson, protocol::activities::deletion::delete::Delete};
2 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one_or_many};
3 use activitystreams_kinds::activity::UndoType;
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 #[serde(deserialize_with = "deserialize_one_or_many")]
12 pub(crate) to: Vec<Url>,
13 pub(crate) object: Delete,
14 #[serde(rename = "type")]
15 pub(crate) kind: UndoType,
18 #[serde(deserialize_with = "deserialize_one_or_many", default)]
19 #[serde(skip_serializing_if = "Vec::is_empty")]
20 pub(crate) cc: Vec<Url>,