2 objects::person::ApubPerson,
3 protocol::{activities::voting::vote::Vote, Unparsed},
5 use activitypub_federation::{core::object_id::ObjectId, deser::helpers::deserialize_one_or_many};
6 use activitystreams_kinds::activity::UndoType;
7 use serde::{Deserialize, Serialize};
10 #[derive(Clone, Debug, Deserialize, Serialize)]
11 #[serde(rename_all = "camelCase")]
13 pub(crate) actor: ObjectId<ApubPerson>,
14 pub(crate) object: Vote,
15 #[serde(deserialize_with = "deserialize_one_or_many", default)]
16 pub(crate) cc: Vec<Url>,
17 #[serde(rename = "type")]
18 pub(crate) kind: UndoType,
22 pub(crate) unparsed: Unparsed,