pub enum JoinCond {
On(String, &'static str, String),
OnVal(String, &'static str, Value),
OnRaw(String, Vec<Value>),
}Expand description
A single ON condition of a Join.
Columns in On/OnVal are stored raw and escaped at compile time. OnRaw
is the verbatim escape hatch (see JoinClause::on_raw).
Variants§
On(String, &'static str, String)
lhs op rhs — both sides are columns (escaped at compile time).
OnVal(String, &'static str, Value)
col op ? — col escaped, the value is bound.
OnRaw(String, Vec<Value>)
Verbatim SQL with its own binds.
Trait Implementations§
impl StructuralPartialEq for JoinCond
Auto Trait Implementations§
impl Freeze for JoinCond
impl RefUnwindSafe for JoinCond
impl Send for JoinCond
impl Sync for JoinCond
impl Unpin for JoinCond
impl UnsafeUnpin for JoinCond
impl UnwindSafe for JoinCond
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more