pub trait CursorType: Sized {
    type Error: Display;

    fn decode_cursor(s: &str) -> Result<Self, Self::Error>;
    fn encode_cursor(&self) -> String;
}
Expand description

Cursor type

A custom scalar that serializes as a string. https://relay.dev/graphql/connections.htm#sec-Cursor

Required Associated Types

Error type for decode_cursor.

Required Methods

Decode cursor from string.

Encode cursor to string.

Implementations on Foreign Types

Implementors