Skip to main content

Changeset

Trait Changeset 

Source
pub trait Changeset<E: Entity> {
    // Required method
    fn changes(&self) -> Vec<ColumnValue>;

    // Provided method
    fn concurrency_token(&self) -> Result<Option<SqlValue>, OrmError> { ... }
}
Expand description

Stable contract for extracting changed values for updates.

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§