Trait CursorTrait

Source
pub trait CursorTrait {
    type Selector: SelectorTrait + Send + Sync;

    // Required method
    fn cursor_by<C>(self, order_columns: C) -> Cursor<Self::Selector>
       where C: IntoIdentity;
}
Expand description

A trait for any type that can be turn into a cursor

Required Associated Types§

Source

type Selector: SelectorTrait + Send + Sync

Select operation

Required Methods§

Source

fn cursor_by<C>(self, order_columns: C) -> Cursor<Self::Selector>
where C: IntoIdentity,

Convert current type into a cursor

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§

Source§

impl<E, M> CursorTrait for Select<E>
where E: EntityTrait<Model = M>, M: FromQueryResult + Send + Sync,