Skip to main content

Page

Trait Page 

Source
pub trait Page: DeserializeOwned {
    type Item;

    // Required method
    fn into_parts(self) -> (Vec<Self::Item>, Option<Continuation>, Option<u64>);
}
Expand description

One page of a paginated response.

Required Associated Types§

Required Methods§

Source

fn into_parts(self) -> (Vec<Self::Item>, Option<Continuation>, Option<u64>)

Consume the page into its items and its cursor.

Takes self because each page is freshly deserialized and never needed afterwards; this avoids cloning every item out of it.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§