1 use crate::objects::person::ApubPerson;
2 use activitystreams::{activity::kind::DeleteType, unparsed::Unparsed};
3 use lemmy_apub_lib::object_id::ObjectId;
4 use serde::{Deserialize, Serialize};
5 use serde_with::skip_serializing_none;
8 #[skip_serializing_none]
9 #[derive(Clone, Debug, Deserialize, Serialize)]
10 #[serde(rename_all = "camelCase")]
12 pub(crate) actor: ObjectId<ApubPerson>,
13 pub(crate) to: Vec<Url>,
14 pub(crate) object: Url,
15 pub(crate) cc: Vec<Url>,
16 #[serde(rename = "type")]
17 pub(crate) kind: DeleteType,
18 /// If summary is present, this is a mod action (Remove in Lemmy terms). Otherwise, its a user
19 /// deleting their own content.
20 pub(crate) summary: Option<String>,
23 pub(crate) unparsed: Unparsed,