framework_cqrs_lib/cqrs/infra/query/
pagination.rs

1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};
use utoipa::IntoParams;

#[derive(IntoParams, Serialize, Deserialize, Debug)]
pub struct HttpPaginationQuery {
    #[serde(rename = "page[number]")]
    pub number: Option<usize>,
    #[serde(rename = "page[size]")]
    pub size: Option<usize>,
}