use crate::{ objects::{community::ApubCommunity, person::ApubPerson}, protocol::Unparsed, }; use activitystreams_kinds::activity::BlockType; use lemmy_apub_lib::object_id::ObjectId; use serde::{Deserialize, Serialize}; use url::Url; #[derive(Clone, Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct BlockUserFromCommunity { pub(crate) actor: ObjectId, #[serde(deserialize_with = "crate::deserialize_one_or_many")] pub(crate) to: Vec, pub(crate) object: ObjectId, #[serde(deserialize_with = "crate::deserialize_one_or_many")] pub(crate) cc: Vec, pub(crate) target: ObjectId, #[serde(rename = "type")] pub(crate) kind: BlockType, pub(crate) id: Url, #[serde(flatten)] pub(crate) unparsed: Unparsed, }