AsChangeset

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> AsChangeset for Option<T>

Source§

impl<Target, T> AsChangeset for (T₁, T₂, …, Tₙ)
where T: AsChangeset<Target = Target>, Target: QuerySource,

Implementors§