pub async fn write_restore<R>(
cx: &Cx,
record: &<R as Resource>::Model,
ex: &mut dyn Executor,
) -> Result<(), WriteError>where
R: Resource,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.