bunny-api-tokio/src/bunny/pagination.rs
Radical 914db27a98 feat: use features to split up api into its respective parts
Edge Storage now has its own client EdgeStorageClient
Bunny.net has its own client BunnyClient
2025-06-25 13:58:37 +02:00

15 lines
384 B
Rust

use serde::Deserialize;
/// Pagination struct used by Bunny.net API
#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct Pagination<T> {
/// Vector of type T
pub items: Vec<T>,
/// Current page number
pub current_page: i32,
/// Total amount of type T
pub total_items: i32,
/// Has more items
pub has_more_items: bool,
}