pub enum SnapshotChange {
AddBlock {
id: String,
block: Value,
},
RemoveBlock {
id: String,
},
ModifyBlock {
id: String,
block: Value,
},
UpdateStructure {
parent: String,
children: Vec<String>,
},
}Expand description
Change record for delta snapshots
Variants§
Trait Implementations§
Source§impl Clone for SnapshotChange
impl Clone for SnapshotChange
Source§fn clone(&self) -> SnapshotChange
fn clone(&self) -> SnapshotChange
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotChange
impl Debug for SnapshotChange
Source§impl<'de> Deserialize<'de> for SnapshotChange
impl<'de> Deserialize<'de> for SnapshotChange
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
Auto Trait Implementations§
impl Freeze for SnapshotChange
impl RefUnwindSafe for SnapshotChange
impl Send for SnapshotChange
impl Sync for SnapshotChange
impl Unpin for SnapshotChange
impl UnwindSafe for SnapshotChange
Blanket Implementations§
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