mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
19 lines
647 B
Rust
19 lines
647 B
Rust
use crate::{activity_lists::AnnouncableActivities, objects::community::ApubCommunity};
|
|
use activitystreams::{activity::kind::AnnounceType, unparsed::Unparsed};
|
|
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 AnnounceActivity {
|
|
pub(crate) actor: ObjectId<ApubCommunity>,
|
|
pub(crate) to: Vec<Url>,
|
|
pub(crate) object: AnnouncableActivities,
|
|
pub(crate) cc: Vec<Url>,
|
|
#[serde(rename = "type")]
|
|
pub(crate) kind: AnnounceType,
|
|
pub(crate) id: Url,
|
|
#[serde(flatten)]
|
|
pub(crate) unparsed: Unparsed,
|
|
}
|