2 objects::person::ApubPerson,
3 protocol::{activities::deletion::delete::Delete, Unparsed},
5 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one_or_many};
6 use activitystreams_kinds::activity::UndoType;
7 use serde::{Deserialize, Serialize};
10 #[derive(Clone, Debug, Deserialize, Serialize)]
11 #[serde(rename_all = "camelCase")]
12 pub struct UndoDelete {
13 pub(crate) actor: ObjectId<ApubPerson>,
14 #[serde(deserialize_with = "deserialize_one_or_many")]
15 pub(crate) to: Vec<Url>,
16 pub(crate) object: Delete,
17 #[serde(rename = "type")]
18 pub(crate) kind: UndoType,
21 #[serde(deserialize_with = "deserialize_one_or_many", default)]
22 #[serde(skip_serializing_if = "Vec::is_empty")]
23 pub(crate) cc: Vec<Url>,
25 pub(crate) unparsed: Unparsed,