Skip to main content

Module diff_cmd

Module diff_cmd 

Source
Expand description

Tauri commands for the diff preview / confirmation framework.

§Commands

§OCP

The kind discriminator in diff_preview_create is a string that maps to a DiffPayload variant. Adding a new kind = one new parse branch in the match below + one new enum variant in diff/mod.rs. Existing kinds are unaffected.

Functions§

diff_preview_cancel
Cancel a pending diff record, voiding any future confirm attempts.
diff_preview_create
Create a pending diff record and return its DiffId.
parse_storage_class_payload 🔒
Parse the raw payload JSON into DiffPayload::StorageClass.