24 lines
570 B
Rust
24 lines
570 B
Rust
|
use activitystreams::object::kind::ImageType;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
use url::Url;
|
||
|
|
||
|
use lemmy_apub_lib::values::MediaTypeMarkdown;
|
||
|
|
||
|
pub(crate) mod collections;
|
||
|
pub(crate) mod objects;
|
||
|
|
||
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||
|
#[serde(rename_all = "camelCase")]
|
||
|
pub struct Source {
|
||
|
pub(crate) content: String,
|
||
|
pub(crate) media_type: MediaTypeMarkdown,
|
||
|
}
|
||
|
|
||
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||
|
#[serde(rename_all = "camelCase")]
|
||
|
pub struct ImageObject {
|
||
|
#[serde(rename = "type")]
|
||
|
pub(crate) kind: ImageType,
|
||
|
pub(crate) url: Url,
|
||
|
}
|