mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
24 lines
705 B
Rust
24 lines
705 B
Rust
|
use crate::{
|
||
|
activity_lists::AnnouncableActivities,
|
||
|
fetcher::object_id::ObjectId,
|
||
|
objects::community::ApubCommunity,
|
||
|
};
|
||
|
use activitystreams::{activity::kind::AnnounceType, unparsed::Unparsed};
|
||
|
use lemmy_apub_lib::traits::ActivityFields;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
use url::Url;
|
||
|
|
||
|
#[derive(Clone, Debug, Deserialize, Serialize, ActivityFields)]
|
||
|
#[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,
|
||
|
}
|