pub struct Paginator {
pub paginator_info: Option<PaginatorInfo>,
/* private fields */
}
Fields§
§paginator_info: Option<PaginatorInfo>
Implementations§
Source§impl Paginator
impl Paginator
pub fn new(query: Query) -> Self
pub fn with_capacity(query: Query, capacity: u16) -> Self
pub fn with_variables(query: Query, variables: Variables) -> Self
pub fn with_capacity_and_variables( query: Query, capacity: u16, variables: Variables, ) -> Self
pub async fn next(&mut self, kit: &Kit) -> Option<Value>
pub fn next_sync(&mut self, kit: &Kit) -> Option<Value>
pub async fn fill(&mut self, kit: &Kit) -> Result<(), String>
pub fn fill_sync(&mut self, kit: &Kit) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paginator
impl !RefUnwindSafe for Paginator
impl Send for Paginator
impl Sync for Paginator
impl Unpin for Paginator
impl UnwindSafe for Paginator
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