mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-10 17:39:22 +00:00
16 lines
507 B
Rust
16 lines
507 B
Rust
use crate::objects::{community::ApubCommunity, person::ApubPerson};
|
|
use activitypub_federation::core::object_id::ObjectId;
|
|
use activitystreams_kinds::activity::FollowType;
|
|
use serde::{Deserialize, Serialize};
|
|
use url::Url;
|
|
|
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct FollowCommunity {
|
|
pub(crate) actor: ObjectId<ApubPerson>,
|
|
pub(crate) object: ObjectId<ApubCommunity>,
|
|
#[serde(rename = "type")]
|
|
pub(crate) kind: FollowType,
|
|
pub(crate) id: Url,
|
|
}
|