Skip to main content

write_restore

Function write_restore 

Source
pub async fn write_restore<R: Resource>(
    cx: &Cx,
    record: &R::Model,
    ex: &mut dyn Executor,
) -> Result<(), WriteError>
Expand description

The derived restore: empties the soft_delete column of a trashed record, through ex and the tenant-scoped query, as write_delete stamps it.

§Errors

WriteError::Failed for a resource that declares no soft-delete column or that the context’s panel does not mount, or the driver’s error.