pub struct JoinBuilder { /* private fields */ }Expand description
JOIN 构造器(已指定 JOIN 类型,待指定右表)
Implementations§
Source§impl JoinBuilder
impl JoinBuilder
Sourcepub fn new(kind: JoinKind) -> JoinBuilder
pub fn new(kind: JoinKind) -> JoinBuilder
创建新的 JoinBuilder,指定 JOIN 类型
Sourcepub fn table<T>(self) -> JoinOnwhere
T: TypedTable,
pub fn table<T>(self) -> JoinOnwhere
T: TypedTable,
指定 JOIN 的右表(被 join 进来的表)
返回 JoinOn,等待 ON 条件。
CROSS JOIN 无需 ON 条件,可直接调用 JoinOn::build。
Auto Trait Implementations§
impl Freeze for JoinBuilder
impl RefUnwindSafe for JoinBuilder
impl Send for JoinBuilder
impl Sync for JoinBuilder
impl Unpin for JoinBuilder
impl UnsafeUnpin for JoinBuilder
impl UnwindSafe for JoinBuilder
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> 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