1 use crate::objects::person::ApubPerson;
2 use activitystreams_kinds::activity::DeleteType;
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")]
11 pub struct DeleteUser {
12 pub(crate) actor: ObjectId<ApubPerson>,
13 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
14 pub(crate) to: Vec<Url>,
15 pub(crate) object: ObjectId<ApubPerson>,
16 #[serde(rename = "type")]
17 pub(crate) kind: DeleteType,
20 #[serde(deserialize_with = "crate::deserialize_one_or_many", default)]
21 #[serde(skip_serializing_if = "Vec::is_empty")]
22 pub(crate) cc: Vec<Url>,