1 use crate::{objects::person::ApubPerson, protocol::Unparsed};
2 use activitystreams_kinds::activity::AddType;
3 use lemmy_apub_lib::object_id::ObjectId;
4 use serde::{Deserialize, Serialize};
7 #[derive(Clone, Debug, Deserialize, Serialize)]
8 #[serde(rename_all = "camelCase")]
10 pub(crate) actor: ObjectId<ApubPerson>,
11 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
12 pub(crate) to: Vec<Url>,
13 pub(crate) object: ObjectId<ApubPerson>,
14 pub(crate) target: Url,
15 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
16 pub(crate) cc: Vec<Url>,
17 #[serde(rename = "type")]
18 pub(crate) kind: AddType,
22 pub(crate) unparsed: Unparsed,