Skip to main content

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'update, T> AsChangeset for &'update Option<T>

Source§

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

Implementors§