1 use crate::objects::{community::ApubCommunity, person::ApubPerson};
2 use activitypub_federation::core::object_id::ObjectId;
3 use activitystreams_kinds::activity::FollowType;
4 use serde::{Deserialize, Serialize};
7 #[derive(Clone, Debug, Deserialize, Serialize)]
8 #[serde(rename_all = "camelCase")]
9 pub struct FollowCommunity {
10 pub(crate) actor: ObjectId<ApubPerson>,
11 pub(crate) object: ObjectId<ApubCommunity>,
12 #[serde(rename = "type")]
13 pub(crate) kind: FollowType,