pub fn assignment<C>(
column: C,
field_value: FieldValue,
) -> Result<Eq<C, ValueOf<C>>, ValueMismatch>where
C: Expression + ExpressionMethods,
C::SqlType: SqlType + TypedExpressionType + ColumnValue,
ValueOf<C>: AsExpression<C::SqlType>,Expand description
The assignment column = value for a merge-patch write of the model.
The column is the one the entity stores the domain field in; the
assignment is one item of a changeset (Options of these, None for the
unchanged columns).
§Errors
ValueMismatch if the value does not fit the column’s SQL type.