lemmy/crates/apub/src/protocol/collections/group_moderators.rs
Nutomic 6f513793cb
Activitypub crate rewrite (#2782)
* update activitypub-federation crate to 0.4.0

* fixes

* apub compiles!

* everything compiling!

* almost done, federated follow failing

* some test fixes

* use release

* add code back in
2023-03-21 16:03:05 +01:00

16 lines
434 B
Rust

use crate::objects::person::ApubPerson;
use activitypub_federation::{
fetch::object_id::ObjectId,
kinds::collection::OrderedCollectionType,
};
use serde::{Deserialize, Serialize};
use url::Url;
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GroupModerators {
pub(crate) r#type: OrderedCollectionType,
pub(crate) id: Url,
pub(crate) ordered_items: Vec<ObjectId<ApubPerson>>,
}