pub fn plan_object_undo(
key: &str,
history: &[ObjectVersion],
explicit_version_id: Option<&str>,
) -> Result<UndoPlanItem>Expand description
Plan a safe undo for one key from its complete, newest-first version history.
Without an explicit version, only a latest delete marker over a data version or a latest data version immediately preceded by another data version is reversible. An explicit data version selects that historical version for restoration. An explicit delete marker must be current.