pub trait JoinTo<T> { }
Expand description

Indicates that two tables can be joined without an explicit ON clause.

Implementations of this trait are generated by invoking joinable!. Implementing this trait means that you can call left_table.inner_join(right_table), without supplying the ON clause explicitly. To join two tables which do not implement this trait, you will need to call .on.

See joinable! and inner_join for usage examples.

Implementors§

source§

impl<S2, S> JoinTo<Alias<S2>> for Alias<S>where S2: AliasSource, S: AliasSource + Default, S::Target: JoinTo<Alias<S2>>, <S::Target as JoinTo<Alias<S2>>>::OnClause: FieldAliasMapper<S>,

source§

impl<S, T> JoinTo<T> for Only<S>where S: JoinTo<T> + Table, T: Table,

source§

impl<T, S> JoinTo<T> for Alias<S>where T: Table, S: AliasSource + Default, S::Target: JoinTo<T>, <S::Target as JoinTo<T>>::OnClause: FieldAliasMapper<S>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl JoinTo<table> for table

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl JoinTo<table> for table

impl JoinTo<table> for table

impl JoinTo<table> for table

impl JoinTo<table> for table

impl JoinTo<table> for table

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl JoinTo<table> for table

impl JoinTo<table> for table

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl JoinTo<table> for table

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

impl JoinTo<table> for table

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl JoinTo<table> for table

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,

impl<S> JoinTo<Only<S>> for tablewhere Only<S>: JoinTo<table>,

impl<S> JoinTo<Alias<S>> for tablewhere Alias<S>: JoinTo<table>,