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, Key: ForeignKeyValue<M::PrimaryKey>> PrefetchRelation<M> for HasMany<M, R, Relation, Key>

Source§

type Query = PrefetchRelatedQuery<M, R, Relation, Key>

Source§

impl<M: Model, R: Model, Relation, C, ChildRelation, OuterKey: ForeignKeyValue<M::PrimaryKey>, InnerKey: ForeignKeyValue<R::PrimaryKey>> PrefetchRelation<M> for NestedPrefetchPlan<M, R, Relation, C, ChildRelation, OuterKey, InnerKey>

Source§

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