Skip to main content

NewList

Trait NewList 

Source
pub trait NewList<T>
where T: DeserializeOwned + Send + Sync + Unpin + 'static,
{ // Required method fn new( items: Vec<T>, limit: Option<i64>, total: Option<i64>, page: Option<i64>, ) -> Self; }
Expand description

Trait for creating list results.

Required Methods§

Source

fn new( items: Vec<T>, limit: Option<i64>, total: Option<i64>, page: Option<i64>, ) -> Self

Creates a new list result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§