Skip to main content

PrefetchRelation

Trait PrefetchRelation 

Source
pub trait PrefetchRelation<Owner: Model> {
    type Query;

    // Required method
    fn into_query(self, query: SelectQuery<Owner>) -> Self::Query;
}

Required Associated Types§

Required Methods§

Source

fn into_query(self, query: SelectQuery<Owner>) -> Self::Query

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<M: Model, R, Relation, C, ChildRelation> PrefetchRelation<M> for NestedPrefetchPlan<M, R, Relation, C, ChildRelation>

Source§

type Query = NestedPrefetchQuery<M, R, Relation, C, ChildRelation>

Source§

impl<M: Model, R, Relation> PrefetchRelation<M> for HasMany<M, R, Relation, i64>

Source§

type Query = PrefetchRelatedQuery<M, R, Relation>