lemmy/crates/apub/src/protocol/collections/group_moderators.rs
2023-09-22 21:39:03 -04:00

15 lines
432 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>>,
}