pub struct Joined<M, T> { /* private fields */ }Expand description
A column of a related model, usable like a field of the root model M.
Implementations§
Source§impl<M, T> Joined<M, T>
impl<M, T> Joined<M, T>
Sourcepub fn is_not_null(self) -> Expr
pub fn is_not_null(self) -> Expr
IS NOT NULL.
Sourcepub fn is_in<L: Literal<T>>(self, values: impl IntoIterator<Item = L>) -> Expr
pub fn is_in<L: Literal<T>>(self, values: impl IntoIterator<Item = L>) -> Expr
Membership in a list of literals.
Sourcepub fn in_subquery(self, plan: QueryPlan) -> Expr
pub fn in_subquery(self, plan: QueryPlan) -> Expr
Membership in the single column a subquery selects.
Source§impl<M, T: TextLike> Joined<M, T>
impl<M, T: TextLike> Joined<M, T>
Sourcepub fn starts_with(self, needle: impl Into<String>) -> Expr
pub fn starts_with(self, needle: impl Into<String>) -> Expr
Text lookup starts_with.
Sourcepub fn istarts_with(self, needle: impl Into<String>) -> Expr
pub fn istarts_with(self, needle: impl Into<String>) -> Expr
Text lookup istarts_with.
Sourcepub fn iends_with(self, needle: impl Into<String>) -> Expr
pub fn iends_with(self, needle: impl Into<String>) -> Expr
Text lookup iends_with.
Trait Implementations§
Source§impl<M, T> From<Joined<M, T>> for SelectExpr
impl<M, T> From<Joined<M, T>> for SelectExpr
Auto Trait Implementations§
impl<M, T> Freeze for Joined<M, T>
impl<M, T> RefUnwindSafe for Joined<M, T>
impl<M, T> Send for Joined<M, T>
impl<M, T> Sync for Joined<M, T>
impl<M, T> Unpin for Joined<M, T>
impl<M, T> UnsafeUnpin for Joined<M, T>
impl<M, T> UnwindSafe for Joined<M, T>
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