use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct Request {
pub store: String,
pub entity: String,
pub after: Option<Vec<u8>>,
pub key: Option<Vec<String>>,
pub rows: u8,
pub bytes: u16,
}
#[derive(Serialize, Deserialize)]
pub struct Page {
pub fingerprint: String,
pub columns: Vec<String>,
pub rows: Vec<Vec<Cell>>,
pub next: Option<Vec<u8>>,
}
#[derive(Serialize, Deserialize)]
pub enum Cell {
Absent,
Truncated,
Scalar(String),
Sequence(Vec<Self>),
Map(Vec<(Self, Self)>),
Record(Vec<(String, Self)>),
Variant(String, Option<Box<Self>>),
}