[][src]Struct async_graphql::PageInfo

pub struct PageInfo {
    pub has_previous_page: bool,
    pub has_next_page: bool,
    pub start_cursor: Option<Cursor>,
    pub end_cursor: Option<Cursor>,
}

Information about pagination in a connection

Fields

has_previous_page: boolhas_next_page: boolstart_cursor: Option<Cursor>end_cursor: Option<Cursor>

Implementations

impl PageInfo[src]

pub async fn has_previous_page<'_, '_, '_>(
    &'_ self,
    ctx: &'_ Context<'_>
) -> FieldResult<bool>
[src]

pub async fn has_next_page<'_, '_, '_>(
    &'_ self,
    ctx: &'_ Context<'_>
) -> FieldResult<bool>
[src]

pub async fn start_cursor<'_, '_, '_>(
    &'_ self,
    ctx: &'_ Context<'_>
) -> FieldResult<Option<Cursor>>
[src]

pub async fn end_cursor<'_, '_, '_>(
    &'_ self,
    ctx: &'_ Context<'_>
) -> FieldResult<Option<Cursor>>
[src]

Trait Implementations

impl Type for PageInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,