Skip to main content

JoinSpec

Struct JoinSpec 

Source
pub struct JoinSpec<T1: ClickTable, T2: ClickTable, J: JoinType> { /* private fields */ }
Expand description

Join specification

Implementations§

Source§

impl<T1: ClickTable, T2: ClickTable, J: JoinType> JoinSpec<T1, T2, J>

Source

pub fn new() -> Self

Source

pub fn on<C1, C2>(self, _col1: C1, _col2: C2) -> Self
where C1: TypedColumn<Table = T1>, C2: TypedColumn<Table = T2, Type = C1::Type>,

Source

pub fn to_sql(&self) -> String

Generate the SQL JOIN clause

Auto Trait Implementations§

§

impl<T1, T2, J> Freeze for JoinSpec<T1, T2, J>

§

impl<T1, T2, J> RefUnwindSafe for JoinSpec<T1, T2, J>

§

impl<T1, T2, J> Send for JoinSpec<T1, T2, J>
where J: Send,

§

impl<T1, T2, J> Sync for JoinSpec<T1, T2, J>
where J: Sync,

§

impl<T1, T2, J> Unpin for JoinSpec<T1, T2, J>
where T1: Unpin, T2: Unpin, J: Unpin,

§

impl<T1, T2, J> UnwindSafe for JoinSpec<T1, T2, J>
where T1: UnwindSafe, T2: UnwindSafe, J: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.