Skip to main content

PageCursor

Trait PageCursor 

Source
pub trait PageCursor: Serialize + DeserializeOwned {
    const KIND: &'static str;
}
Expand description

One paginated endpoint’s cursor.

Cursors are opaque to clients: hex-encoded JSON carrying the endpoint’s KIND and the format version, so a cursor replayed against the wrong endpoint or an older build is rejected rather than misread.

Required Associated Constants§

Source

const KIND: &'static str

Frozen endpoint discriminator written into the encoded cursor.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl PageCursor for DirectoryPageCursor

Source§

const KIND: &'static str = "directory"

Source§

impl PageCursor for FileRevisionsPageCursor

Source§

const KIND: &'static str = "file_revisions"

Source§

impl PageCursor for GrepPageCursor

Source§

const KIND: &'static str = "grep"

Source§

impl PageCursor for TrashPageCursor

Source§

const KIND: &'static str = "trash"