2 objects::person::ApubPerson,
3 protocol::{activities::CreateOrUpdateType, objects::page::Page, Unparsed},
5 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one_or_many};
6 use serde::{Deserialize, Serialize};
9 #[derive(Clone, Debug, Deserialize, Serialize)]
10 #[serde(rename_all = "camelCase")]
11 pub struct CreateOrUpdatePost {
12 pub(crate) actor: ObjectId<ApubPerson>,
13 #[serde(deserialize_with = "deserialize_one_or_many")]
14 pub(crate) to: Vec<Url>,
15 pub(crate) object: Page,
16 #[serde(deserialize_with = "deserialize_one_or_many")]
17 pub(crate) cc: Vec<Url>,
18 #[serde(rename = "type")]
19 pub(crate) kind: CreateOrUpdateType,
23 pub(crate) unparsed: Unparsed,