Struct fuel_gql_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.