1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::document::document::BaseDocument;

pub struct PageableResponse<T: BaseDocument> {
    pub data: Vec<T>,
    number_per_page: i64,
    last_item_id: Option<String>,
    total: i64,
    no_of_items_in_batch: i64,
}

#[derive(Debug)]
pub struct PageableRequest {
    number_per_page: i64,
    last_item_id: Option<String>,
}