juniper_relay_helpers 0.7.0

Helper macros, structs and functions for working with Relay and Juniper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Cursor;

/// Trait used by the CursorProvider's to be able to build the generated PageInfo structs from the codegen.
///
/// You shouldn't need to implement it yourself, it's just used in the generated code.
pub trait PageInfoFactory<CursorT>
where
    CursorT: Cursor,
{
    fn new(
        has_prev_page: bool,
        has_next_page: bool,
        start_cursor: Option<CursorT>,
        end_cursor: Option<CursorT>,
    ) -> Self;
}