pub async fn write_update<R: Resource>(
cx: &Cx,
record: R::Model,
posted: Posted<R::Form>,
ex: &mut dyn Executor,
) -> Result<R::Model>Expand description
The derived update: assign every named field and execute through ex, then link the record
to the records each named many-to-many field holds, and unlink it from the others.
A submission that names no field writes nothing. The instance update
reloads record, so the returned row is the written one.
§Errors
The driver’s error.