Skip to main content

ModelScopes

Trait ModelScopes 

Source
pub trait ModelScopes:
    Sized
    + Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn scope(s: Scope<Self>) -> QueryBuilder<Self>;
}
Expand description

Трейт для определения scopes на модели. Пользователь реализует его в impl UserScopes for User { ... }.

Required Methods§

Source

fn scope(s: Scope<Self>) -> QueryBuilder<Self>

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§