pub struct Col<M, T> { /* private fields */ }Expand description
A column of model M holding values of type T.
Implementations§
Source§impl<M, T: ToValue> Col<M, T>
impl<M, T: ToValue> Col<M, T>
pub fn eq(self, value: impl Into<T>) -> Expr
Sourcepub fn to(self, value: impl Into<T>) -> Assign
pub fn to(self, value: impl Into<T>) -> Assign
An assignment for Query::update_all: p.published.to(false).
pub fn ne(self, value: impl Into<T>) -> Expr
pub fn lt(self, value: impl Into<T>) -> Expr
pub fn le(self, value: impl Into<T>) -> Expr
pub fn gt(self, value: impl Into<T>) -> Expr
pub fn ge(self, value: impl Into<T>) -> Expr
Sourcepub fn is_in<V: Into<T>>(self, values: impl IntoIterator<Item = V>) -> Expr
pub fn is_in<V: Into<T>>(self, values: impl IntoIterator<Item = V>) -> Expr
column IN (…). An empty list matches nothing.
Trait Implementations§
Auto Trait Implementations§
impl<M, T> Freeze for Col<M, T>
impl<M, T> RefUnwindSafe for Col<M, T>
impl<M, T> Send for Col<M, T>
impl<M, T> Sync for Col<M, T>
impl<M, T> Unpin for Col<M, T>
impl<M, T> UnsafeUnpin for Col<M, T>
impl<M, T> UnwindSafe for Col<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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