Struct typed_sql::types::field::Field [−][src]
pub struct Field<T, A> { /* fields omitted */ }Implementations
impl<T, A> Field<T, A> where
T: Table, [src]
impl<T, A> Field<T, A> where
T: Table, [src]pub fn new(name: &'static str) -> Self[src]
pub fn eq<U>(self, rhs: U) -> Op<T, A, U, Eq>[src]
pub fn neq<U>(self, rhs: U) -> Op<T, A, U, Neq>[src]
pub fn gt<U>(self, rhs: U) -> Op<T, A, U, Gt>[src]
pub fn lt<U>(self, rhs: U) -> Op<T, A, U, Lt>[src]
pub fn then<T2>(self, next: T2) -> Then<Self, T2>[src]
pub fn ascending(self) -> Ordered<T, A, Ascending>[src]
pub fn descending(self) -> Ordered<T, A, Descending>[src]
Trait Implementations
impl<T, A> GroupOrder for Field<T, A> where
T: Table, [src]
impl<T, A> GroupOrder for Field<T, A> where
T: Table, [src]fn write_columns(&self, sql: &mut String)[src]
impl<T, A> Copy for Field<T, A>[src]
Auto Trait Implementations
impl<T, A> RefUnwindSafe for Field<T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> Send for Field<T, A> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<T, A> Sync for Field<T, A> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
impl<T, A> Unpin for Field<T, A> where
A: Unpin,
T: Unpin,
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for Field<T, A> where
A: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Query for T[src]
impl<T> Query for T[src]fn prepare<F, S>(name: &str, f: F) -> Prepare<'_, Self, S> where
Self: Binding,
F: FnOnce(Self::Bindings) -> S,
S: ToSql, [src]
fn prepare<F, S>(name: &str, f: F) -> Prepare<'_, Self, S> where
Self: Binding,
F: FnOnce(Self::Bindings) -> S,
S: ToSql, [src]Examples Read more
fn select(self) -> SelectStatement<Self, WildCard> where
Self: Selectable, [src]
fn select(self) -> SelectStatement<Self, WildCard> where
Self: Selectable, [src]Examples Read more
fn query<Q>(self, query: Q) -> SelectStatement<Self, Q> where
Self: Selectable,
Q: WriteQueryable, [src]
fn query<Q>(self, query: Q) -> SelectStatement<Self, Q> where
Self: Selectable,
Q: WriteQueryable, [src]Examples Read more
fn count<F, T>(self, f: F) -> SelectStatement<Self, Count<T>> where
Self: Selectable,
F: FnOnce(Self::Fields) -> T,
Count<T>: WriteQueryable, [src]
fn count<F, T>(self, f: F) -> SelectStatement<Self, Count<T>> where
Self: Selectable,
F: FnOnce(Self::Fields) -> T,
Count<T>: WriteQueryable, [src]Examples Read more
fn insert<I>(self, value: I) -> InsertStatement<Self::Table, I> where
Self: TableQueryable,
I: Insertable, [src]
fn insert<I>(self, value: I) -> InsertStatement<Self::Table, I> where
Self: TableQueryable,
I: Insertable, [src]fn insert_values<I>(self, values: I) -> InsertStatement<Self::Table, Values<I>> where
Self: TableQueryable,
I: IntoIterator + Clone,
I::Item: Insertable, [src]
Self: TableQueryable,
I: IntoIterator + Clone,
I::Item: Insertable,
fn insert_select<S, I>(
self,
select: S
) -> InsertStatement<Self::Table, InsertSelect<S, I>> where
Self: TableQueryable,
S: Select,
I: Insertable, [src]
self,
select: S
) -> InsertStatement<Self::Table, InsertSelect<S, I>> where
Self: TableQueryable,
S: Select,
I: Insertable,
fn update<F, S>(self, f: F) -> Update<Self::Table, S> where
Self: TableQueryable,
F: FnOnce(<Self::Table as Table>::Fields) -> S,
S: UpdateSet, [src]
fn update<F, S>(self, f: F) -> Update<Self::Table, S> where
Self: TableQueryable,
F: FnOnce(<Self::Table as Table>::Fields) -> S,
S: UpdateSet, [src]fn filter<F, P>(self, f: F) -> Filter<Self, P> where
Self: Filterable,
F: FnOnce(Self::Fields) -> P, [src]
Self: Filterable,
F: FnOnce(Self::Fields) -> P,
fn group_by<F, O>(self, f: F) -> GroupBy<Self, O> where
Self: Select,
F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
O: GroupOrder, [src]
fn group_by<F, O>(self, f: F) -> GroupBy<Self, O> where
Self: Select,
F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
O: GroupOrder, [src]Examples Read more
fn order_by<F, O>(self, f: F) -> OrderBy<Self, O> where
Self: Select,
F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
O: Order, [src]
fn order_by<F, O>(self, f: F) -> OrderBy<Self, O> where
Self: Select,
F: FnOnce(<Self::Selectable as Selectable>::Fields) -> O,
O: Order, [src]Examples Read more
fn limit(self, limit: usize) -> Limit<Self> where
Self: Select, [src]
Self: Select,
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more