Expand description
Pagination types for Ghost API browse endpoints.
Ghost API browse endpoints return paginated results with metadata about the current page, total pages, and navigation links.
§Example
use ghost_io_api::models::pagination::{Meta, Pagination};
// Typically you won't construct these manually, they come from API responses
let pagination = Pagination {
page: 1,
limit: 15,
pages: 5,
total: 73,
next: Some(2),
prev: None,
};
// Check if there are more pages
assert!(pagination.has_next());
assert!(!pagination.has_prev());Structs§
- Meta
- Metadata wrapper returned by Ghost API browse endpoints.
- Pagination
- Pagination information for browse endpoints.