Skip to main content

write_update

Function write_update 

Source
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.

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.