pub struct Pagination<T>{
pub items: Vec<T>,
pub before: Option<Cursor>,
pub after: Option<Cursor>,
pub first: Option<i64>,
pub last: Option<i64>,
pub total_nodes: i64,
pub has_next: bool,
pub has_previous: bool,
}Fields§
§items: Vec<T>§before: Option<Cursor>§after: Option<Cursor>§first: Option<i64>§last: Option<i64>§total_nodes: i64§has_next: bool§has_previous: boolImplementations§
Trait Implementations§
Source§impl<T> Debug for Pagination<T>
impl<T> Debug for Pagination<T>
Source§impl<T> From<Pagination<T>> for Connection<Cursor, T, AdditionalFields>
impl<T> From<Pagination<T>> for Connection<Cursor, T, AdditionalFields>
Source§fn from(value: Pagination<T>) -> Self
fn from(value: Pagination<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Pagination<T>
impl<T> RefUnwindSafe for Pagination<T>where
T: RefUnwindSafe,
impl<T> Send for Pagination<T>where
T: Send,
impl<T> Sync for Pagination<T>where
T: Sync,
impl<T> Unpin for Pagination<T>where
T: Unpin,
impl<T> UnwindSafe for Pagination<T>where
T: UnwindSafe,
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