Struct butane_core::query::FieldExpr
source · pub struct FieldExpr<T>where
T: Into<SqlVal>,{ /* private fields */ }
Expand description
Used to implement the query!
and filter!
macros.
Implementations§
source§impl<T> FieldExpr<T>where
T: Into<SqlVal>,
impl<T> FieldExpr<T>where T: Into<SqlVal>,
pub fn new(name: &'static str) -> Self
pub fn name(&self) -> &'static str
pub fn eq<U>(&self, val: &U) -> BoolExprwhere T: PartialEq<U>, U: ToSql,
pub fn ne<U>(&self, val: &U) -> BoolExprwhere T: PartialEq<U>, U: ToSql,
pub fn lt<U>(&self, val: &U) -> BoolExprwhere T: DataOrd<U>, U: ToSql,
pub fn gt<U>(&self, val: &U) -> BoolExprwhere T: DataOrd<U>, U: ToSql,
pub fn le<U>(&self, val: &U) -> BoolExprwhere T: DataOrd<U>, U: ToSql,
pub fn ge<U>(&self, val: &U) -> BoolExprwhere T: DataOrd<U>, U: ToSql,
pub fn like<U>(&self, val: U) -> BoolExprwhere U: ToSql,
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for FieldExpr<T>where T: RefUnwindSafe,
impl<T> Send for FieldExpr<T>where T: Send,
impl<T> Sync for FieldExpr<T>where T: Sync,
impl<T> Unpin for FieldExpr<T>where T: Unpin,
impl<T> UnwindSafe for FieldExpr<T>where T: UnwindSafe,
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