pub struct Col<O, T> { /* private fields */ }Expand description
A typed column: comparing it with the wrong Rust type, or using it on another table, does not compile.
Implementations§
Source§impl<O: OnTable, T: ColumnValue> Col<O, T>
impl<O: OnTable, T: ColumnValue> Col<O, T>
pub const fn new(name: &'static str) -> Self
pub const fn name(&self) -> &'static str
Sourcepub fn value(self, value: impl Into<T>) -> (&'static str, Value)
pub fn value(self, value: impl Into<T>) -> (&'static str, Value)
The column paired with a value, for raw column lists such as a social profile mapping.
pub fn eq(self, value: impl Into<T>) -> Where<O::Table>
pub fn ne(self, value: impl Into<T>) -> Where<O::Table>
pub fn lt(self, value: impl Into<T>) -> Where<O::Table>
pub fn lte(self, value: impl Into<T>) -> Where<O::Table>
pub fn gt(self, value: impl Into<T>) -> Where<O::Table>
pub fn gte(self, value: impl Into<T>) -> Where<O::Table>
pub fn in_(self, values: impl IntoIterator<Item = T>) -> Where<O::Table>
pub fn is_null(self) -> Where<O::Table>
pub fn is_not_null(self) -> Where<O::Table>
pub fn asc(self) -> (&'static str, Order)
pub fn desc(self) -> (&'static str, Order)
Trait Implementations§
Auto Trait Implementations§
impl<O, T> Forget for Col<O, T>
impl<O, T> Freeze for Col<O, T>
impl<O, T> Move for Col<O, T>
impl<O, T> RefUnwindSafe for Col<O, T>
impl<O, T> Send for Col<O, T>
impl<O, T> Sync for Col<O, T>
impl<O, T> Unpin for Col<O, T>
impl<O, T> UnsafeUnpin for Col<O, T>
impl<O, T> UnwindSafe for Col<O, 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