Skip to main content

assignment

Function assignment 

Source
pub fn assignment<C>(
    column: C,
    field_value: FieldValue,
) -> Result<Eq<C, ValueOf<C>>, ValueMismatch>
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.