Skip to main content

DecoratableTarget

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

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

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,

Source§

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