Skip to main content

JoinRelation

Trait JoinRelation 

Source
pub trait JoinRelation {
    type From: Model + HasCols;
    type To: Model + HasCols;

    const JOIN_TYPE: JoinType;

    // Required method
    fn on(ctx: JoinCtx<Self::From, Self::To>) -> Predicate;
}
Expand description

Custom typed join predicate for complex ON clauses.

Required Associated Constants§

Source

const JOIN_TYPE: JoinType

SQL join type.

Required Associated Types§

Source

type From: Model + HasCols

Source model.

Source

type To: Model + HasCols

Joined model.

Required Methods§

Source

fn on(ctx: JoinCtx<Self::From, Self::To>) -> Predicate

Builds the typed ON predicate.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§