mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-11 01:10:29 +00:00
23 lines
615 B
Rust
23 lines
615 B
Rust
use crate::{
|
|
objects::person::ApubPerson,
|
|
protocol::{activities::deletion::delete::Delete, Unparsed},
|
|
};
|
|
use activitystreams_kinds::activity::UndoType;
|
|
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 UndoDelete {
|
|
pub(crate) actor: ObjectId<ApubPerson>,
|
|
pub(crate) to: Vec<Url>,
|
|
pub(crate) object: Delete,
|
|
pub(crate) cc: Vec<Url>,
|
|
#[serde(rename = "type")]
|
|
pub(crate) kind: UndoType,
|
|
pub(crate) id: Url,
|
|
#[serde(flatten)]
|
|
pub(crate) unparsed: Unparsed,
|
|
}
|