37 lines
762 B
Rust
37 lines
762 B
Rust
#[derive(Debug, Clone, PartialEq, Eq)]
|
|||
|
|
pub struct QueryEnvelope<T> {
|
||
|
|
pub name: String,
|
||
|
|
pub payload: T,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||
|
|
pub struct Pagination {
|
||
|
|
pub limit: u32,
|
||
|
|
pub cursor: Option<String>,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||
|
|
pub struct GetPage {
|
||
|
|
pub page_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<String>,
|
||
|
|
pub pagination: Pagination,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||
|
|
pub struct SearchBlocks {
|
||
|
|
pub query: String,
|
||
|
|
pub page_id: Option<String>,
|
||
|
|
pub pagination: Pagination,
|
||
|
|
}
|