Struct typed_sql::types::bind::Binder[][src]

pub struct Binder { /* fields omitted */ }

Implementations

impl Binder[src]

pub fn bind(&mut self) -> Bind[src]

Trait Implementations

impl Debug for Binder[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Binder[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

Auto Trait Implementations

impl RefUnwindSafe for Binder

impl Send for Binder

impl Sync for Binder

impl Unpin for Binder

impl UnwindSafe for Binder

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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]

Examples Read more

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]

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]

Examples Read more

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]

fn insert_select<S, I>(
    self,
    select: S
) -> InsertStatement<Self::Table, InsertSelect<S, I>> where
    Self: TableQueryable,
    S: Select,
    I: Insertable
[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 delete(self) -> Delete<Self::Table> where
    Self: TableQueryable
[src]

fn filter<F, P>(self, f: F) -> Filter<Self, P> where
    Self: Filterable,
    F: FnOnce(Self::Fields) -> P, 
[src]

fn and<P>(self, predicate: P) -> And<Self, P> where
    Self: Predicate,
    P: Predicate
[src]

fn or<P>(self, predicate: P) -> Or<Self, P> where
    Self: Predicate,
    P: Predicate
[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]

Examples Read more

fn limit(self, limit: usize) -> Limit<Self> where
    Self: Select
[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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.