2 objects::person::ApubPerson,
3 protocol::{activities::CreateOrUpdateType, objects::chat_message::ChatMessage, Unparsed},
5 use lemmy_apub_lib::object_id::ObjectId;
6 use serde::{Deserialize, Serialize};
9 #[derive(Clone, Debug, Deserialize, Serialize)]
10 #[serde(rename_all = "camelCase")]
11 pub struct CreateOrUpdatePrivateMessage {
13 pub(crate) actor: ObjectId<ApubPerson>,
14 pub(crate) to: [ObjectId<ApubPerson>; 1],
15 pub(crate) object: ChatMessage,
16 #[serde(rename = "type")]
17 pub(crate) kind: CreateOrUpdateType,
19 pub(crate) unparsed: Unparsed,