Skip to main content

replacement

Function replacement 

Source
async fn replacement(
    draft: PostDraft,
) -> Result<(PostPatch, RenderedFields), WriteError>
Expand description

完整更新:校验草稿并在事务外渲染正文,返回补丁与渲染结果。

渲染直接使用草稿里已校验的正文与状态,避免事后从 Option 字段取回。