lemmy/crates/apub/src/protocol/activities/following/undo_follow.rs

22 lines
590 B
Rust
Raw Normal View History

use crate::{
2021-11-16 16:27:43 +00:00
objects::person::ApubPerson,
protocol::{activities::following::follow::FollowCommunity, Unparsed},
};
use activitystreams_kinds::activity::UndoType;
2021-11-05 00:24:10 +00:00
use lemmy_apub_lib::object_id::ObjectId;
use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct UndoFollowCommunity {
pub(crate) actor: ObjectId<ApubPerson>,
pub(crate) object: FollowCommunity,
#[serde(rename = "type")]
pub(crate) kind: UndoType,
pub(crate) id: Url,
#[serde(flatten)]
pub(crate) unparsed: Unparsed,
}