1 use activitystreams::object::kind::ImageType;
2 use serde::{Deserialize, Serialize};
5 use lemmy_apub_lib::values::MediaTypeMarkdown;
7 pub(crate) mod collections;
8 pub(crate) mod objects;
10 #[derive(Clone, Debug, Deserialize, Serialize)]
11 #[serde(rename_all = "camelCase")]
13 pub(crate) content: String,
14 pub(crate) media_type: MediaTypeMarkdown,
17 #[derive(Clone, Debug, Deserialize, Serialize)]
18 #[serde(rename_all = "camelCase")]
19 pub struct ImageObject {
20 #[serde(rename = "type")]
21 pub(crate) kind: ImageType,