pub struct ConnectionArgs {
pub after: Option<String>,
pub before: Option<String>,
pub first: Option<i32>,
pub last: Option<i32>,
}
Expand description
Generic graphql pagination query args
Fields§
§after: Option<String>
Skip until cursor (forward pagination)
before: Option<String>
Skip until cursor (backward pagination)
first: Option<i32>
Retrieve the first n items in order (forward pagination)
last: Option<i32>
Retrieve the last n items in order (backward pagination).
Can’t be used at the same time as first
.
Trait Implementations§
Source§impl Debug for ConnectionArgs
impl Debug for ConnectionArgs
Source§impl Default for ConnectionArgs
impl Default for ConnectionArgs
Source§fn default() -> ConnectionArgs
fn default() -> ConnectionArgs
Returns the “default value” for a type. Read more
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.
Source§impl QueryVariables for ConnectionArgs
impl QueryVariables for ConnectionArgs
Source§const VARIABLES: &'static [(&'static str, VariableType)]
const VARIABLES: &'static [(&'static str, VariableType)]
An associated constant that contains the variable names & their types. Read more
Source§type Fields = ConnectionArgsFields
type Fields = ConnectionArgsFields
A struct that determines which variables are available when using this struct.
Source§impl Serialize for ConnectionArgs
impl Serialize for ConnectionArgs
impl VariableMatch<ConnectionArgs> for ConnectionArgs
Auto Trait Implementations§
impl Freeze for ConnectionArgs
impl RefUnwindSafe for ConnectionArgs
impl Send for ConnectionArgs
impl Sync for ConnectionArgs
impl Unpin for ConnectionArgs
impl UnwindSafe for ConnectionArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more