]> Untitled Git - lemmy.git/blob - crates/apub/src/protocol/activities/voting/undo_vote.rs
When announcing incoming activities, keep extra fields (#2550)
[lemmy.git] / crates / apub / src / protocol / activities / voting / undo_vote.rs
1 use crate::{objects::person::ApubPerson, protocol::activities::voting::vote::Vote};
2 use activitypub_federation::core::object_id::ObjectId;
3 use activitystreams_kinds::activity::UndoType;
4 use serde::{Deserialize, Serialize};
5 use url::Url;
6
7 #[derive(Clone, Debug, Deserialize, Serialize)]
8 #[serde(rename_all = "camelCase")]
9 pub struct UndoVote {
10   pub(crate) actor: ObjectId<ApubPerson>,
11   pub(crate) object: Vote,
12   #[serde(rename = "type")]
13   pub(crate) kind: UndoType,
14   pub(crate) id: Url,
15 }