Trait diesel::query_builder::UpdateTarget
[−]
[src]
pub trait UpdateTarget: QuerySource { type Table: Table; fn where_clause(&self, out: &mut QueryBuilder) -> BuildQueryResult; fn table(&self) -> &Self::Table; }
You should not need to implement this trait.
table!
will implement it for you.
Types which can be passed to update
. This will be
implemented for tables, and the result
of calling filter
.
Errors about this trait not being implemented are likely indicating that you
have called a method like select
or order
, which does not make sense in
the context of an update
or delete
operation.
Associated Types
Required Methods
fn where_clause(&self, out: &mut QueryBuilder) -> BuildQueryResult
fn table(&self) -> &Self::Table
Implementors
impl<T: Table> UpdateTarget for T