rocket_db_pools::diesel::prelude

Trait AsChangeset

Source
pub trait AsChangeset {
    type Target: QuerySource;
    type Changeset;

    // Required method
    fn as_changeset(self) -> Self::Changeset;
}
Expand description

Types which can be passed to update.set.

This trait can be derived

Required Associated Types§

Source

type Target: QuerySource

The table which Self::Changeset will be updating

Source

type Changeset

The update statement this type represents

Required Methods§

Source

fn as_changeset(self) -> Self::Changeset

Convert self into the actual update statement being executed

Implementations on Foreign Types§

Source§

impl<T> AsChangeset for Option<T>
where T: AsChangeset,

Source§

impl<Target, T0> AsChangeset for (T0,)
where T0: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1> AsChangeset for (T0, T1)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2> AsChangeset for (T0, T1, T2)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3> AsChangeset for (T0, T1, T2, T3)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4> AsChangeset for (T0, T1, T2, T3, T4)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5> AsChangeset for (T0, T1, T2, T3, T4, T5)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6> AsChangeset for (T0, T1, T2, T3, T4, T5, T6)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, T11: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, T11: AsChangeset<Target = Target>, T12: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, T11: AsChangeset<Target = Target>, T12: AsChangeset<Target = Target>, T13: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, T11: AsChangeset<Target = Target>, T12: AsChangeset<Target = Target>, T13: AsChangeset<Target = Target>, T14: AsChangeset<Target = Target>, Target: QuerySource,

Source§

impl<Target, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> AsChangeset for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: AsChangeset<Target = Target>, T1: AsChangeset<Target = Target>, T2: AsChangeset<Target = Target>, T3: AsChangeset<Target = Target>, T4: AsChangeset<Target = Target>, T5: AsChangeset<Target = Target>, T6: AsChangeset<Target = Target>, T7: AsChangeset<Target = Target>, T8: AsChangeset<Target = Target>, T9: AsChangeset<Target = Target>, T10: AsChangeset<Target = Target>, T11: AsChangeset<Target = Target>, T12: AsChangeset<Target = Target>, T13: AsChangeset<Target = Target>, T14: AsChangeset<Target = Target>, T15: AsChangeset<Target = Target>, Target: QuerySource,

Implementors§