2 activity_lists::AnnouncableActivities,
3 objects::community::ApubCommunity,
4 protocol::{IdOrNestedObject, Unparsed},
6 use activitystreams_kinds::activity::AnnounceType;
7 use lemmy_apub_lib::object_id::ObjectId;
8 use serde::{Deserialize, Serialize};
11 #[derive(Clone, Debug, Deserialize, Serialize)]
12 #[serde(rename_all = "camelCase")]
13 pub struct AnnounceActivity {
14 pub(crate) actor: ObjectId<ApubCommunity>,
15 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
16 pub(crate) to: Vec<Url>,
17 pub(crate) object: IdOrNestedObject<AnnouncableActivities>,
18 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
19 pub(crate) cc: Vec<Url>,
20 #[serde(rename = "type")]
21 pub(crate) kind: AnnounceType,
25 pub(crate) unparsed: Unparsed,