2 fetcher::post_or_comment::PostOrComment,
3 objects::{community::ApubCommunity, person::ApubPerson},
6 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one};
7 use activitystreams_kinds::activity::FlagType;
8 use serde::{Deserialize, Serialize};
11 #[derive(Clone, Debug, Deserialize, Serialize)]
12 #[serde(rename_all = "camelCase")]
14 pub(crate) actor: ObjectId<ApubPerson>,
15 #[serde(deserialize_with = "deserialize_one")]
16 pub(crate) to: [ObjectId<ApubCommunity>; 1],
17 pub(crate) object: ObjectId<PostOrComment>,
18 pub(crate) summary: String,
19 #[serde(rename = "type")]
20 pub(crate) kind: FlagType,
24 pub(crate) unparsed: Unparsed,