Trait async_graphql::types::connection::CursorType [−][src]
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
Associated Types
Required methods
fn decode_cursor(s: &str) -> Result<Self, Self::Error>
[src]
fn decode_cursor(s: &str) -> Result<Self, Self::Error>
[src]Decode cursor from string.
fn encode_cursor(&self) -> String
[src]
fn encode_cursor(&self) -> String
[src]Encode cursor to string.
Implementations on Foreign Types
impl CursorType for usize
[src]
impl CursorType for usize
[src]type Error = ParseIntError
fn decode_cursor(s: &str) -> Result<Self, Self::Error>
[src]
fn encode_cursor(&self) -> String
[src]
impl CursorType for String
[src]
impl CursorType for String
[src]type Error = Infallible
fn decode_cursor(s: &str) -> Result<Self, Self::Error>
[src]
fn encode_cursor(&self) -> String
[src]
Implementors
impl CursorType for ID
[src]
impl CursorType for ID
[src]