#[derive(Debug, Clone, PartialEq, Eq)] pub struct QueryEnvelope { pub name: String, pub payload: T, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct Pagination { pub limit: u32, pub cursor: Option, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct GetPage { pub page_id: String, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct GetPageMeta { pub page_id: String, pub workspace_id: Option, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct GetPageContent { pub page_id: String, pub workspace_id: Option, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct ListSidebarDataset { pub workspace_id: String, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct ListPageBlocks { pub page_id: String, pub pagination: Pagination, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct SearchPages { pub query: String, pub workspace_id: Option, pub pagination: Pagination, } #[derive(Debug, Clone, PartialEq, Eq)] pub struct SearchBlocks { pub query: String, pub page_id: Option, pub pagination: Pagination, }