Our Personal Data Server from scratch!
0

Configure Feed

Select the types of activity you want to include in your feed.

tranquil-pds / src / sync / firehose.rs
608 B 21 lines
1use chrono::{DateTime, Utc}; 2use serde::{Deserialize, Serialize}; 3use serde_json::Value; 4 5#[derive(Debug, Clone, Serialize, Deserialize)] 6pub struct SequencedEvent { 7 pub seq: i64, 8 pub did: String, 9 pub created_at: DateTime<Utc>, 10 pub event_type: String, 11 pub commit_cid: Option<String>, 12 pub prev_cid: Option<String>, 13 pub prev_data_cid: Option<String>, 14 pub ops: Option<Value>, 15 pub blobs: Option<Vec<String>>, 16 pub blocks_cids: Option<Vec<String>>, 17 pub handle: Option<String>, 18 pub active: Option<bool>, 19 pub status: Option<String>, 20 pub rev: Option<String>, 21}