[−][src]Struct async_graphql::types::connection::PageInfo
Information about pagination in a connection
Fields
has_previous_page: bool
When paginating backwards, are there more items?
has_next_page: bool
When paginating forwards, are there more items?
start_cursor: Option<String>
When paginating backwards, the cursor to continue.
end_cursor: Option<String>
When paginating forwards, the cursor to continue.
Implementations
impl PageInfo
[src]
pub async fn has_previous_page<'_, '_, '_, '_>(
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ bool>
[src]
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ bool>
pub async fn has_next_page<'_, '_, '_, '_>(
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ bool>
[src]
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ bool>
pub async fn start_cursor<'_, '_, '_, '_>(
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ Option<String>>
[src]
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ Option<String>>
pub async fn end_cursor<'_, '_, '_, '_>(
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ Option<String>>
[src]
&'_ self,
ctx: &'_ Context<'_>
) -> Result<&'_ Option<String>>
Trait Implementations
impl ContainerType for PageInfo
[src]
pub fn resolve_field<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context<'life2>
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: &'life1 Context<'life2>
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
pub fn collect_all_fields<'a>(
&'a self,
ctx: &ContextSelectionSet<'a>,
fields: &mut Fields<'a>
) -> ServerResult<()> where
Self: Sized + Send + Sync,
[src]
&'a self,
ctx: &ContextSelectionSet<'a>,
fields: &mut Fields<'a>
) -> ServerResult<()> where
Self: Sized + Send + Sync,
#[must_use]pub fn find_entity<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
__arg1: &'life1 Context<'life2>,
_params: &'life3 Value
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
__arg1: &'life1 Context<'life2>,
_params: &'life3 Value
) -> Pin<Box<dyn Future<Output = ServerResult<Option<Value>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: Sync + 'async_trait,
impl ObjectType for PageInfo
[src]
impl OutputValueType for PageInfo
[src]
pub fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
impl Type for PageInfo
[src]
pub fn type_name() -> Cow<'static, str>
[src]
pub fn create_type_info(registry: &mut Registry) -> String
[src]
pub fn qualified_type_name() -> String
[src]
pub fn introspection_type_name(&self) -> Cow<'static, str>
[src]
Auto Trait Implementations
impl RefUnwindSafe for PageInfo
impl Send for PageInfo
impl Sync for PageInfo
impl Unpin for PageInfo
impl UnwindSafe for PageInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,