Skip to main content

ConflictTarget

Trait ConflictTarget 

Source
pub trait ConflictTarget<T: Table>: Sealed { }
Expand description

An ON CONFLICT target: one or more columns proven by T to belong to the table being inserted into, where a raw &[&str] would let a typo through to the database. Implemented for a bare Column<C> and for tuples of up to three; add arities as real schemas need them.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Table, A: ColumnKey<Table = T>, B: ColumnKey<Table = T>, C: ColumnKey<Table = T>> ConflictTarget<T> for (Column<A>, Column<B>, Column<C>)

Source§

impl<T: Table, A: ColumnKey<Table = T>, B: ColumnKey<Table = T>> ConflictTarget<T> for (Column<A>, Column<B>)

Source§

impl<T: Table, A: ColumnKey<Table = T>> ConflictTarget<T> for (Column<A>,)

Implementors§