mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
0cea64309a
Signed-off-by: Jason Volk <jason@zemos.net>
17 lines
513 B
Rust
17 lines
513 B
Rust
use std::{collections::BTreeMap, sync::Arc};
|
|
|
|
use ruma::{events::TimelineEventType, EventId};
|
|
use serde::Deserialize;
|
|
use serde_json::value::RawValue as RawJsonValue;
|
|
|
|
/// Build the start of a PDU in order to add it to the Database.
|
|
#[derive(Debug, Deserialize)]
|
|
pub struct PduBuilder {
|
|
#[serde(rename = "type")]
|
|
pub event_type: TimelineEventType,
|
|
pub content: Box<RawJsonValue>,
|
|
pub unsigned: Option<BTreeMap<String, serde_json::Value>>,
|
|
pub state_key: Option<String>,
|
|
pub redacts: Option<Arc<EventId>>,
|
|
}
|