pub struct ApiMeta {
pub page: Option<u32>,
pub per_page: Option<u32>,
pub total: Option<u64>,
}Expand description
Pagination metadata.
Included in the response when the endpoint returns paginated results.
§Examples
use ironflow_api::response::ApiMeta;
let meta = ApiMeta {
page: Some(1),
per_page: Some(20),
total: Some(100),
};
assert_eq!(meta.page, Some(1));Fields§
§page: Option<u32>Current page number (1-based).
per_page: Option<u32>Items per page.
total: Option<u64>Total number of items matching the filter.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiMeta
impl RefUnwindSafe for ApiMeta
impl Send for ApiMeta
impl Sync for ApiMeta
impl Unpin for ApiMeta
impl UnsafeUnpin for ApiMeta
impl UnwindSafe for ApiMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more