lemmy/crates/apub/src/protocol/activities/voting/undo_vote.rs

16 lines
493 B
Rust
Raw Normal View History

use crate::{objects::person::ApubPerson, protocol::activities::voting::vote::Vote};
2022-10-18 03:13:18 +00:00
use activitypub_federation::core::object_id::ObjectId;
use activitystreams_kinds::activity::UndoType;
use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct UndoVote {
pub(crate) actor: ObjectId<ApubPerson>,
pub(crate) object: Vote,
#[serde(rename = "type")]
pub(crate) kind: UndoType,
pub(crate) id: Url,
}