1 use crate::protocol::Id;
2 use activitystreams_kinds::object::TombstoneType;
3 use serde::{Deserialize, Serialize};
4 use serde_with::skip_serializing_none;
7 #[skip_serializing_none]
8 #[derive(Clone, Debug, Deserialize, Serialize)]
9 #[serde(rename_all = "camelCase")]
10 pub struct Tombstone {
12 #[serde(rename = "type")]
13 pub(crate) kind: TombstoneType,
17 pub fn new(id: Url) -> Tombstone {
20 kind: TombstoneType::Tombstone,
25 impl Id for Tombstone {
26 fn id(&self) -> &Url {