Files
thoughts/thoughts-backend/models/src/schemas/pagination.rs
Gabriel Kaszewski d92c9a747e
All checks were successful
Build and Deploy Thoughts / build-and-deploy-local (push) Successful in 2m30s
feat: implement pagination for user retrieval and update feed fetching logic
2025-09-09 02:53:24 +02:00

13 lines
265 B
Rust

use serde::Serialize;
use utoipa::ToSchema;
#[derive(Serialize, ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct PaginatedResponse<T> {
pub items: Vec<T>,
pub page: u64,
pub page_size: u64,
pub total_pages: u64,
pub total_items: u64,
}