mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 09:02:43 +00:00
22 lines
599 B
Rust
22 lines
599 B
Rust
use crate::{
|
|
objects::person::ApubPerson,
|
|
protocol::{activities::CreateOrUpdateType, objects::page::Page, 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 CreateOrUpdatePost {
|
|
pub(crate) actor: ObjectId<ApubPerson>,
|
|
pub(crate) to: Vec<Url>,
|
|
pub(crate) object: Page,
|
|
pub(crate) cc: Vec<Url>,
|
|
#[serde(rename = "type")]
|
|
pub(crate) kind: CreateOrUpdateType,
|
|
pub(crate) id: Url,
|
|
#[serde(flatten)]
|
|
pub(crate) unparsed: Unparsed,
|
|
}
|