Trait diesel::upsert::DecoratableTarget

source ·
pub trait DecoratableTarget<P> {
    type FilterOutput;

    // Required method
    fn filter_target(self, predicate: P) -> Self::FilterOutput;
}
Expand description

Interface to add information to conflict targets. Designed to be open for further additions to conflict targets like constraints

Required Associated Types§

source

type FilterOutput

Output type of filter_target operation

Required Methods§

source

fn filter_target(self, predicate: P) -> Self::FilterOutput

equivalent to filter of FilterDsl but aimed at conflict targets

Implementors§

source§

impl<Stmt, T, P> DecoratableTarget<P> for IncompleteOnConflict<Stmt, T>

source§

impl<T, P> DecoratableTarget<P> for T
where P: Expression, P::SqlType: BoolOrNullableBool, T: UndecoratedConflictTarget,

§

type FilterOutput = DecoratedConflictTarget<T, WhereClause<P>>