mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-05 00:24:52 +00:00
23 lines
724 B
Rust
23 lines
724 B
Rust
|
use crate::{
|
||
|
fetcher::{object_id::ObjectId, post_or_comment::PostOrComment},
|
||
|
objects::{community::ApubCommunity, person::ApubPerson},
|
||
|
};
|
||
|
use activitystreams::{activity::kind::FlagType, 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 Report {
|
||
|
pub(crate) actor: ObjectId<ApubPerson>,
|
||
|
pub(crate) to: [ObjectId<ApubCommunity>; 1],
|
||
|
pub(crate) object: ObjectId<PostOrComment>,
|
||
|
pub(crate) summary: String,
|
||
|
#[serde(rename = "type")]
|
||
|
pub(crate) kind: FlagType,
|
||
|
pub(crate) id: Url,
|
||
|
#[serde(flatten)]
|
||
|
pub(crate) unparsed: Unparsed,
|
||
|
}
|