pub enum UndoAction {
RemoveDeleteMarker {
marker_version_id: String,
revealed_version_id: String,
},
RestoreVersion {
source_version_id: String,
},
}Expand description
A history-preserving mutation selected by the undo planner.
Variants§
RemoveDeleteMarker
Remove the current delete marker so the prior data version becomes visible.
Fields
RestoreVersion
Copy an existing data version onto the same key as a new version.
Trait Implementations§
Source§impl Clone for UndoAction
impl Clone for UndoAction
Source§fn clone(&self) -> UndoAction
fn clone(&self) -> UndoAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoAction
impl Debug for UndoAction
Source§impl<'de> Deserialize<'de> for UndoAction
impl<'de> Deserialize<'de> for UndoAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UndoAction
Source§impl PartialEq for UndoAction
impl PartialEq for UndoAction
Source§impl Serialize for UndoAction
impl Serialize for UndoAction
impl StructuralPartialEq for UndoAction
Auto Trait Implementations§
impl Freeze for UndoAction
impl RefUnwindSafe for UndoAction
impl Send for UndoAction
impl Sync for UndoAction
impl Unpin for UndoAction
impl UnsafeUnpin for UndoAction
impl UnwindSafe for UndoAction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more