2 fetcher::object_id::ObjectId,
3 objects::{community::ApubCommunity, person::ApubPerson},
5 use activitystreams::{activity::kind::BlockType, unparsed::Unparsed};
6 use serde::{Deserialize, Serialize};
9 #[derive(Clone, Debug, Deserialize, Serialize)]
10 #[serde(rename_all = "camelCase")]
11 pub struct BlockUserFromCommunity {
12 pub(crate) actor: ObjectId<ApubPerson>,
13 pub(crate) to: Vec<Url>,
14 pub(crate) object: ObjectId<ApubPerson>,
15 pub(crate) cc: Vec<Url>,
16 pub(crate) target: ObjectId<ApubCommunity>,
17 #[serde(rename = "type")]
18 pub(crate) kind: BlockType,
21 pub(crate) unparsed: Unparsed,