pub struct PageInfo { /* private fields */ }Expand description
Page metadata.
Implementations§
Source§impl PageInfo
impl PageInfo
Sourcepub const fn new(
cursor: Option<CursorPosition>,
total_count: Option<TotalCount>,
has_more: HasMore,
) -> Self
pub const fn new( cursor: Option<CursorPosition>, total_count: Option<TotalCount>, has_more: HasMore, ) -> Self
Creates page metadata.
Sourcepub const fn cursor(&self) -> Option<&CursorPosition>
pub const fn cursor(&self) -> Option<&CursorPosition>
Returns the optional cursor.
Sourcepub const fn total_count(&self) -> Option<TotalCount>
pub const fn total_count(&self) -> Option<TotalCount>
Returns total-count metadata.
Trait Implementations§
impl Eq for PageInfo
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 UnsafeUnpin 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