pub struct PageInfo {
pub has_previous_page: bool,
pub has_next_page: bool,
pub start_cursor: Option<Value>,
pub end_cursor: Option<Value>,
}Expand description
Pagination metadata for a result set.
Fields§
§has_previous_page: boolWhether there are more items before the first edge
has_next_page: boolWhether there are more items after the last edge
start_cursor: Option<Value>Cursor of the first edge (for backward pagination)
end_cursor: Option<Value>Cursor of the last edge (for forward pagination)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageInfo
impl<'de> Deserialize<'de> for PageInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PageInfo
Auto Trait Implementations§
impl Freeze for PageInfo
impl RefUnwindSafe for PageInfo
impl Send for PageInfo
impl Sync for PageInfo
impl Unpin for PageInfo
impl UnwindSafe for PageInfo
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