Skip to main content

take_snapshot

Function take_snapshot 

Source
pub fn take_snapshot(
    app: &AppHandle,
    scope: Option<&ScopeId>,
    name: &str,
    if_rev: Option<u64>,
    dry_run: bool,
    origin: &Origin,
) -> Result<Snapshot, Refusal>
Expand description

Takes a snapshot of a scope (where Undo goes when scope is None): refused unless the scope’s revision is still if_rev; with dry_run, the snapshot it would take. Published on the journal as history.snapshot_taken.