Something went wrong. Try again.
Rust AppView - highly experimental! forked from parakeet.at/parakeet
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455use crate::indexer::types::RecordTypes;use ipld_core::cid::Cid;use serde::Deserialize;use serde_bytes::ByteBuf;
#[derive(Debug, Deserialize)]#[serde(untagged)]pub enum CarEntry { Mst(CarMstEntry), Commit(CarCommitEntry), Record(CarRecordEntry),}
#[derive(Debug, Deserialize)]pub struct CarMstEntry { pub l: Option<Cid>, pub e: Vec<CarMstEntryNode>,}
#[derive(Debug, Deserialize)]pub struct CarMstEntryNode { pub p: i32, pub k: ByteBuf, pub v: Cid, pub t: Option<Cid>,}
#[derive(Debug, Deserialize)]pub struct CarCommitEntry { pub did: String, pub version: i32, pub data: Cid, pub rev: String, pub prev: Option<Cid>, pub sig: ByteBuf,}
#[derive(Debug, Deserialize)]#[serde(untagged)]pub enum CarRecordEntry { Known(RecordTypes), Other { #[serde(rename = "$type")] ty: String, },}
#[derive(Debug, Deserialize)]pub struct GetRepoStatusRes { pub did: String, pub active: bool, pub status: Option<crate::firehose::AtpAccountStatus>, pub rev: Option<String>,}