2 objects::{person::ApubPerson, private_message::ApubPrivateMessage},
5 use activitystreams_kinds::activity::DeleteType;
6 use lemmy_apub_lib::object_id::ObjectId;
7 use serde::{Deserialize, Serialize};
10 #[derive(Clone, Debug, Deserialize, Serialize)]
11 #[serde(rename_all = "camelCase")]
12 pub struct DeletePrivateMessage {
13 pub(crate) actor: ObjectId<ApubPerson>,
14 #[serde(deserialize_with = "crate::deserialize_one")]
15 pub(crate) to: [ObjectId<ApubPerson>; 1],
16 pub(crate) object: ObjectId<ApubPrivateMessage>,
17 #[serde(rename = "type")]
18 pub(crate) kind: DeleteType,
21 pub(crate) unparsed: Unparsed,