Skip to main content

ChangesetUpdatePair

Type Alias ChangesetUpdatePair 

Source
pub type ChangesetUpdatePair<S, B> = (Option<Value<S, B>>, Option<Value<S, B>>);
Expand description

(old, new) values for one changeset UPDATE column, where None is the undefined wire marker.

A changeset UPDATE carries the old image of the key columns and of the changed columns, and the new image of the changed columns only, so the four pair shapes are distinct. ChangesetUpdatePairExt::is_changed reads them.

Trait Implementations§

Source§

impl<S, B> ChangesetUpdatePairExt for ChangesetUpdatePair<S, B>
where Value<S, B>: PartialEq,

Source§

fn is_changed(&self) -> bool

Whether the wire says this column’s value changed. Read more