pub trait JoinArg<'a, FromTable> {
type JoinedTable;
// Required method
fn into_join_sql(self, join: Join) -> SQL<'a, PostgresValue<'a>>;
}Expand description
Trait for arguments accepted by .join() and related join methods.
Required Associated Types§
Sourcetype JoinedTable
type JoinedTable
Table added to the query scope by this join.
Required Methods§
Sourcefn into_join_sql(self, join: Join) -> SQL<'a, PostgresValue<'a>>
fn into_join_sql(self, join: Join) -> SQL<'a, PostgresValue<'a>>
Renders the join source and its ON condition.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a, U, C, T> JoinArg<'a, T> for (U, C)where
U: JoinSource<'a>,
C: ToSQL<'a, PostgresValue<'a>>,
Tuple (table, condition): explicit ON condition.
impl<'a, U, C, T> JoinArg<'a, T> for (U, C)where
U: JoinSource<'a>,
C: ToSQL<'a, PostgresValue<'a>>,
Tuple (table, condition): explicit ON condition.