Struct fuel_core_client::client::schema::PaginationRequest
source · pub struct PaginationRequest<T> {
pub cursor: Option<T>,
pub results: usize,
pub direction: PageDirection,
}
Expand description
Used to parameterize paginated queries
Fields§
§cursor: Option<T>
The cursor returned from a previous query to indicate an offset
results: usize
The number of results to take
direction: PageDirection
The direction of the query (e.g. asc, desc order).
Trait Implementations§
source§impl<T: Clone> Clone for PaginationRequest<T>
impl<T: Clone> Clone for PaginationRequest<T>
source§fn clone(&self) -> PaginationRequest<T>
fn clone(&self) -> PaginationRequest<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for PaginationRequest<T>
impl<T: Debug> Debug for PaginationRequest<T>
source§impl<T: Into<String>> From<PaginationRequest<T>> for ConnectionArgs
impl<T: Into<String>> From<PaginationRequest<T>> for ConnectionArgs
source§fn from(req: PaginationRequest<T>) -> Self
fn from(req: PaginationRequest<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for PaginationRequest<T>where T: RefUnwindSafe,
impl<T> Send for PaginationRequest<T>where T: Send,
impl<T> Sync for PaginationRequest<T>where T: Sync,
impl<T> Unpin for PaginationRequest<T>where T: Unpin,
impl<T> UnwindSafe for PaginationRequest<T>where T: UnwindSafe,
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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