2 objects::{community::ApubCommunity, person::ApubPerson},
5 use activitystreams_kinds::activity::BlockType;
6 use chrono::{DateTime, FixedOffset};
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 BlockUserFromCommunity {
14 pub(crate) actor: ObjectId<ApubPerson>,
15 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
16 pub(crate) to: Vec<Url>,
17 pub(crate) object: ObjectId<ApubPerson>,
18 #[serde(deserialize_with = "crate::deserialize_one_or_many")]
19 pub(crate) cc: Vec<Url>,
20 pub(crate) target: ObjectId<ApubCommunity>,
21 #[serde(rename = "type")]
22 pub(crate) kind: BlockType,
25 pub(crate) unparsed: Unparsed,
26 pub(crate) expires: Option<DateTime<FixedOffset>>,