juniper_relay_helpers 0.5.0

Helper macros, structs and functions for working with Relay and Juniper
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::PageRequest;

/// Struct that holds metadata about the response that can be used in the CursorProvider
#[derive(Debug, Clone)]
pub struct PaginationMetadata {
    /// The total number of items in the result set:
    pub total_count: Option<i32>,

    /// The current PageInfo, if any:
    pub page_request: Option<PageRequest>,
}