[][src]Struct butane_core::query::FieldExpr

pub struct FieldExpr<T> where
    T: Into<SqlVal>, 
{ /* fields omitted */ }

Used to implement the query! and filter! macros.

Implementations

impl<T> FieldExpr<T> where
    T: Into<SqlVal>, 
[src]

pub fn new(name: &'static str) -> Self[src]

pub fn eq<U>(&self, val: &U) -> BoolExpr where
    T: PartialEq<U>,
    U: ToSql
[src]

pub fn ne<U>(&self, val: &U) -> BoolExpr where
    T: PartialEq<U>,
    U: ToSql
[src]

pub fn lt<U>(&self, val: &U) -> BoolExpr where
    T: DataOrd<U>,
    U: ToSql
[src]

pub fn gt<U>(&self, val: &U) -> BoolExpr where
    T: DataOrd<U>,
    U: ToSql
[src]

pub fn le<U>(&self, val: &U) -> BoolExpr where
    T: DataOrd<U>,
    U: ToSql
[src]

pub fn ge<U>(&self, val: &U) -> BoolExpr where
    T: DataOrd<U>,
    U: ToSql
[src]

pub fn like<U>(&self, val: U) -> BoolExpr where
    U: ToSql
[src]

impl<F: DataObject> FieldExpr<ForeignKey<F>>[src]

pub fn subfilter(&self, q: BoolExpr) -> BoolExpr[src]

pub fn subfilterpk(&self, pk: F::PKType) -> BoolExpr[src]

pub fn fields(&self) -> F::Fields[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for FieldExpr<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for FieldExpr<T> where
    T: Send
[src]

impl<T> Sync for FieldExpr<T> where
    T: Sync
[src]

impl<T> Unpin for FieldExpr<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for FieldExpr<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.